Skip to content

Merge pull request #3 from PipeItToDevNull/alpine #59

Merge pull request #3 from PipeItToDevNull/alpine

Merge pull request #3 from PipeItToDevNull/alpine #59

Workflow file for this run

# https://docs.docker.com/build/ci/github-actions/multi-platform/
name: Publish Docker image multi-arch
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
schedule:
- cron: "0 13 * * *"
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
tag:
- v0.1.0
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ matrix.tag }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
context: git
images: pipeittodevnull/nginx-certbot
flavor: latest=true
tags: |
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}.{{minor}}.{{patch}}
type=semver,pattern={{version}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}