chore(deps): update docker/setup-buildx-action action to v3.7.1 #832
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 Container Image for me-site | |
on: | |
push: | |
paths: | |
- "build/me-site/**" | |
- "cmd/me-site/**" | |
- "internal/pkg/owparser" | |
- "go.mod" | |
- "go.sum" | |
- ".github/workflows/me-site.yml" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Docker meta | |
id: docker_meta | |
uses: docker/metadata-action@v5.5.1 | |
with: | |
images: ghcr.io/lexfrei/me-site | |
flavor: | | |
latest=true | |
tags: | | |
type=ref,event=branch | |
type=ref,event=pr | |
type=sha | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3.2.0 | |
with: | |
platforms: "arm64,amd64" | |
- name: Checkout | |
uses: actions/checkout@v4.2.0 | |
- name: Set up Docker Context for Buildx | |
id: buildx-context | |
run: | | |
docker context create builders | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3.7.1 | |
with: | |
endpoint: builders | |
config-inline: | | |
[registry."docker.io"] | |
mirrors = ["mirror.gcr.io"] | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3.3.0 | |
if: github.ref == 'refs/heads/master' | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.CR_PAT }} | |
- name: Build and push | |
uses: docker/build-push-action@v6.9.0 | |
if: github.ref == 'refs/heads/master' | |
with: | |
context: . | |
file: ./build/me-site/Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ${{ steps.docker_meta.outputs.tags }} | |
- name: Build | |
uses: docker/build-push-action@v6.9.0 | |
if: github.ref == !'refs/heads/master' | |
with: | |
context: . | |
file: ./build/me-site/Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
tags: ${{ steps.docker_meta.outputs.tags }} |