on tagging

This commit is contained in:
2021-05-02 15:12:04 +02:00
parent b053fc15f4
commit c1ff3a6543
3 changed files with 15 additions and 3 deletions

View File

@@ -3,8 +3,8 @@ name: ci
on:
workflow_dispatch:
push:
branches:
- "main"
tags:
- "v*.*.*"
jobs:
docker:
@@ -14,6 +14,14 @@ jobs:
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Docker Labels
id: meta
uses: crazy-max/ghaction-docker-meta@v2
with:
images: cupcakearmy/cryptgeon
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
@@ -24,6 +32,6 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags: cupcakearmy/cryptgeon:latest
tags: ${{ steps.meta.outputs.tags }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}