rvps: fix binary target path #132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Push KBS Image | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_and_push_kbs_image: | |
permissions: | |
packages: write | |
uses: ./.github/workflows/build-kbs-image.yml | |
with: | |
build_option: --push | |
secrets: inherit | |
publish_multi_arch_image: | |
needs: build_and_push_kbs_image | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- kbs | |
- kbs-grpc-as | |
permissions: | |
packages: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to GHCR Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish Multi-Arch ${{ matrix.image }} image | |
run: | | |
commit_sha=${{ github.sha }} | |
docker manifest create "ghcr.io/confidential-containers/staged-images/${{ matrix.image }}:${commit_sha}" \ | |
--amend "ghcr.io/confidential-containers/staged-images/${{ matrix.image }}:${commit_sha}-x86_64" \ | |
--amend "ghcr.io/confidential-containers/staged-images/${{ matrix.image }}:${commit_sha}-s390x" | |
docker manifest push "ghcr.io/confidential-containers/staged-images/${{ matrix.image }}:${commit_sha}" | |
docker manifest create "ghcr.io/confidential-containers/staged-images/${{ matrix.image }}:latest" \ | |
--amend "ghcr.io/confidential-containers/staged-images/${{ matrix.image }}:latest-x86_64" \ | |
--amend "ghcr.io/confidential-containers/staged-images/${{ matrix.image }}:latest-s390x" | |
docker manifest push "ghcr.io/confidential-containers/staged-images/${{ matrix.image }}:latest" |