Skip to content

Commit

Permalink
add tags on docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
sevennt committed Feb 16, 2022
1 parent abc1def commit 7b6e803
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,28 @@ on:
push:
tags:
- "v**"
branches:
- 'master'
- 'feature/docker-ci'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
sevennt/mogo
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
Expand All @@ -22,4 +39,5 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags: sevennt/mogo:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 7b6e803

Please sign in to comment.