Skip to content

Commit

Permalink
set CI_ARCH env var
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jan 6, 2025
1 parent 82eb726 commit ef1a13e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/push-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ jobs:
strategy:
matrix:
arch: [amd64, arm64]
env:
CI_ARCH: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ef1a13e

Please sign in to comment.