fix: wg-sudoers path to iptables fixed #205
Workflow file for this run
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 | |
# inspired by https://docs.docker.com/build/ci/github-actions/examples/ | |
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@11bd71901bbe5b1630ceea73d27597364c9af683 # 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@369eb591f429131d6889c46b94e711f089e6ca96 # 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=branch,enable=true,priority=600 | |
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 | |
- 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@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 | |
with: | |
registry: ${{ env.REGISTRY_QUAY }} | |
username: "${{ secrets.QUAY_USERNAME }}" | |
password: ${{ secrets.QUAY_TOKEN }} | |
- name: Push images to registries | |
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5 | |
with: | |
context: . | |
platforms: ${{ env.PLATFORMS }} | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |