ci: fix up PR workflows
MODIFY
.github/workflows/docker-test-release.yml
.github/workflows/docker-test-release.yml
@@ -93,7 +93,7 @@ jobs:
# You can call this reusable flow multiple times, first for build, second for build & push.
- name: Build & Push ${{ matrix.docker-images.description }} (${{ matrix.docker-images.name }})
- if: ${{ inputs.push-to-repos }} &&
+ if: inputs.push-to-repos == 'true'
uses: docker/build-push-action@v3
with:
context: ${{ matrix.docker-images.path }}

MODIFY
.github/workflows/pull-request-verify.yml
.github/workflows/pull-request-verify.yml
-name: Docker PR CI
+name: Docker Pull Request CI
on:
pull_request:
jobs:
- build:
+ read-version:
runs-on: ubuntu-latest
+ outputs:
+ snapshot-version: ${{ steps.check-version-change.outputs.snapshot-version }}
+ release-version: ${{ steps.check-version-change.outputs.snapshot-version }}
steps:
- name: "Get release and snapshot versions..."
run: |
echo "{release_version=$(cat .github/workflows/RELEASE_VERSION)}" >> $GITHUB_ENV
echo "{snapshot_version=$(cat .github/workflows/SNAPSHOT_VERSION)}" >> $GITHUB_ENV
- - name: "Build & verify PR against Apiman release ${{ env.release_version }}"
+ build-against-release:
+ needs: read-version
uses: apiman/apiman-docker/.github/workflows/docker-test-release.yml@master
+ secrets: inherit
with:
- apiman-version: ${{ env.release_version }}
+ apiman-version: ${{ needs.read-version.outputs.release-version }}
push-to-repos: false
snapshot: false
- - name: "Build & verify PR against Apiman snapshot ${{ env.snapshot_version }}"
+ build-against-snapshot:
+ needs: read-version
uses: apiman/apiman-docker/.github/workflows/docker-test-release.yml@master
+ secrets: inherit
with:
- apiman-version: ${{ env.snapshot_version }}
+ apiman-version: ${{ needs.read-version.outputs.snapshot-version }}
push-to-repos: false
snapshot: true
+
+

ci: fix up PR workflows