From ef1a13e83a85bec677daca4db26bdd3dd58d3bf5 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Mon, 6 Jan 2025 13:15:52 -0500 Subject: [PATCH] set CI_ARCH env var --- .github/workflows/push-ci.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push-ci.yaml b/.github/workflows/push-ci.yaml index 29833652a..7ad01fd88 100644 --- a/.github/workflows/push-ci.yaml +++ b/.github/workflows/push-ci.yaml @@ -163,6 +163,8 @@ jobs: strategy: matrix: arch: [amd64, arm64] + env: + CI_ARCH: ${{ matrix.arch }} steps: - uses: actions/checkout@v4 with: @@ -188,13 +190,13 @@ jobs: - name: Prepare test harness run: ./mvnw -Dquarkus.quinoa=false -Dquarkus.container-image.build=false -Dspotless.check.skip -DskipTests package - run: docker images - - run: docker inspect ${{env.CI_IMG}}:linux-${{ matrix.arch }} + - run: docker inspect ${{ env.CI_IMG }}:linux-${{ matrix.arch }} - name: Replace artifact metadata run: | [ -d target ] || mkdir target ; \ touch target/quarkus-artifact.properties ; \ > target/quarkus-artifact.properties ; \ - echo "metadata.container-image=${{env.CI_IMG}}:linux-${{ matrix.arch }}" >> target/quarkus-artifact.properties ; \ + echo "metadata.container-image=${{ env.CI_IMG }}:linux-${{ matrix.arch }}" >> target/quarkus-artifact.properties ; \ echo "metadata.pull-required=false" >> target/quarkus-artifact.properties ; \ echo "type=jar-container" >> target/quarkus-artifact.properties - name: Run tests @@ -228,7 +230,7 @@ jobs: run: | find containers -type f -exec podman load -i {} \; for tag in $(podman images --filter label=io.cryostat.component --format '{{ .Tag }}'); do - podman manifest add ${{ env.CI_IMG }}:${{ needs.get-pom-properties.outputs.image-version }} containers-storage:${{env.CI_IMG}}:${tag} + podman manifest add ${{ env.CI_IMG }}:${{ needs.get-pom-properties.outputs.image-version }} containers-storage:${{ env.CI_IMG }}:${tag} done - name: Push to quay.io id: push-to-quay