Skip to content

fix: ref name on tags #12

fix: ref name on tags

fix: ref name on tags #12

Workflow file for this run

name: Docker Image
on:
push:
branches:
- main
tags:
- "*"
jobs:
docker:
name: Publish to Docker Hub 🐳
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Docker Metadata 🧾
uses: docker/metadata-action@v5
id: meta
with:
images: ${{ github.repository }}
tags: |
type=edge,branch=$repo.default_branch
type=sha,prefix=0.0.0-,format=short
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.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and Push 🚀
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/amd64,linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: true