Update publish-docker.yml

Add tags
This commit is contained in:
James Woglom
2022-02-22 00:16:27 -05:00
committed by GitHub
parent e8fa6c5a7c
commit 5e56b41b62
+7
View File
@@ -4,6 +4,7 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
push_to_registry:
@@ -21,6 +22,7 @@ jobs:
registry: docker.pkg.github.com
repository: jwoglom/tconnectsync/tconnectsync
tag_with_ref: true
push_to_dockerhub:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
@@ -39,6 +41,11 @@ jobs:
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: jwoglom/tconnectsync
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc