Skip to content

Commit

Permalink
Merge branch 'ci-arch-matrix'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jul 27, 2024
2 parents c58d460 + ee65203 commit 2ab1cb3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/push-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
contents: read
# if: ${{ github.repository_owner == 'cryostatio' }}
steps:
- name: Install qemu
- name: Install podman 4 and qemu
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
sudo apt update
sudo apt -y satisfy "podman (>= 4.0), qemu-user-static"
- uses: actions/checkout@v4
with:
submodules: true
Expand Down Expand Up @@ -91,8 +91,6 @@ jobs:
cd src/main/webui
yarn install && yarn yarn:frzinstall
cd -
- name: Ensure podman 4+ and podman-docker installed
run: sudo apt update && sudo apt -y satisfy "podman (>= 4.0)"
- name: Build ${{ matrix.arch }} container image
id: build-image
run: |
Expand All @@ -104,7 +102,6 @@ jobs:
clean verify
- name: Copy docker image to podman
run: podman pull docker-daemon:${{ env.CI_IMG }}:linux-${{ matrix.arch }}
- run: podman inspect ${{ env.CI_IMG }}:linux-${{ matrix.arch }}
- name: Save container image
run: podman save -o cryostat-${{ matrix.arch }}.tar --format oci-archive ${{ env.CI_IMG }}:linux-${{ matrix.arch }}
- uses: actions/upload-artifact@v4
Expand All @@ -122,7 +119,6 @@ jobs:
path: containers
pattern: cryostat-*
merge-multiple: true
- run: find containers -type f
- name: Create manifest
run: podman manifest create ${{ env.CI_IMG }}:${{ needs.get-pom-properties.outputs.image-version }}
- name: Set manifest tags
Expand All @@ -133,7 +129,6 @@ jobs:
podman tag ${{ env.CI_IMG }}:${{ needs.get-pom-properties.outputs.image-version }} ${{ env.CI_IMG }}:latest
TAGS+=(latest)
fi
echo "tags: ${TAGS[@]}"
echo "::set-output name=tags::${TAGS[@]}"
- name: Import container tarballs
run: |
Expand Down

0 comments on commit 2ab1cb3

Please sign in to comment.