Skip to content

release v0.0.2

release v0.0.2 #2

Workflow file for this run

name: "Docker: release"
on:
push:
tags:
- "v*"
env:
USERNAME: fscherf
IMAGE_NAME: fscherf/milan
jobs:
docker-release:
runs-on: ubuntu-latest
steps:
- 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: ${{ env.USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.IMAGE_NAME }}
tags: type=match,pattern=v(.*),group=1
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }},${{ env.IMAGE_NAME }}:latest