chore(deps): update docker/setup-buildx-action digest to c47758b (#73) #170
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 Multiarch Container Images | |
on: | |
push: | |
branches: [ main ] | |
tags: [ '*' ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: multi-arch image build | |
env: | |
PLATFORMS: linux/amd64,linux/arm64 | |
REGISTRY_GH: ghcr.io | |
REGISTRY_QUAY: quay.io | |
runs-on: ubuntu-latest | |
steps: | |
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4 | |
with: | |
token: ${{ secrets.RP_PAT }} | |
config-file: .release-please-config.json | |
- name: Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3 | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Available platforms | |
run: echo ${{ steps.buildx.outputs.platforms }} | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5 | |
with: | |
images: | | |
${{ env.REGISTRY_GH }}/${{ github.repository }} | |
# ${{ env.REGISTRY_QUAY }}/${{ github.repository }} | |
tags: | | |
type=schedule,pattern=nightly,enable=true,priority=1000 | |
type=ref,event=tag,enable=true,priority=600 | |
type=ref,event=pr,prefix=pr-,enable=true,priority=600 | |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }},priority=600 | |
env: | |
DOCKER_METADATA_ANNOTATIONS_LEVELS: index | |
- name: Login to ghcr.io | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 | |
with: | |
registry: ${{ env.REGISTRY_GH }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Login to quay.io | |
# uses: docker/login-action@v3 | |
# with: | |
# registry: ${{ env.REGISTRY_QUAY }} | |
# username: "${{ secrets.QUAY_USERNAME }}" | |
# password: ${{ secrets.QUAY_TOKEN }} | |
- name: Build and Push images | |
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6 | |
with: | |
context: . | |
platforms: ${{ env.PLATFORMS }} | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
annotations: ${{ steps.meta.outputs.annotations }} |