Skip to content

Commit

Permalink
Support multi-platform build
Browse files Browse the repository at this point in the history
  • Loading branch information
guessi committed Jun 23, 2024
1 parent 5df9231 commit 330ad69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: ci

on:
push:
branches:
- 'master'
tags:
- '*.*.*'

Expand All @@ -21,6 +23,12 @@ jobs:
guessi/docker-yourls
tags: |
type=semver,pattern={{version}}
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -35,6 +43,7 @@ jobs:
name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 330ad69

Please sign in to comment.