Build and publish for multiple platforms #157
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: publisher | ||
'on': | ||
push: | ||
schedule: | ||
- cron: '0 5 * * *' | ||
tags: | ||
- v* | ||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: docker/setup-qemu-action@v3 | ||
- uses: docker/setup-buildx-action@v3 | ||
- uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: docker/metadata-action@v5 | ||
id: meta | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
labels: | | ||
maintainer=David Rabkin | ||
org.opencontainers.image.title=Goredoer | ||
org.opencontainers.image.description=Goredoer builds Goredo. | ||
org.opencontainers.image.vendor=David Rabkin | ||
tags: | | ||
type=raw,value=latest | ||
type=schedule,pattern=nightly | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}},priority=901 | ||
- uses: docker/build-push-action@v5 | ||
id: build-and-push | ||
with: | ||
context: . | ||
file: Containerfile | ||
platforms: | ||
- linux/386 | ||
- linux/amd64 | ||
- linux/arm/v6 | ||
- linux/arm/v7 | ||
- linux/arm64 | ||
- linux/mips64 | ||
- linux/mips64le | ||
- linux/ppc64le | ||
- linux/riscv64 | ||
- linux/s390x | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |