1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Updated Dockerhub workflow

This commit is contained in:
krateng
2021-12-15 19:47:34 +01:00
parent c0c474b473
commit a24e26678a
2 changed files with 7 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ name: Publish Docker image to Dockerhub
on:
push:
tags:
- '*.*.*'
- 'v*'
jobs:
push_to_registry:
@@ -27,11 +27,9 @@ jobs:
images: krateng/maloja
# generate Docker tags based on the following events/attributes
tags: |
type=raw,value=latest,enable=${{ endsWith(github.ref, 'master') }}
type=ref,event=branch,enable=${{ !endsWith(github.ref, 'master') }}
type=semver,pattern={{version}}
flavor: |
latest=false
latest=true
- name: Build and push Docker image
uses: docker/build-push-action@v2