Compare commits

...
2 Commits
Author SHA1 Message Date
junv b8c7667523 refine github action to publish latest when tagging 2021-01-01 18:03:36 +11:00
junv 3097a69b72 refine github action 2021-01-01 17:57:48 +11:00
+3 -3
View File
@@ -53,18 +53,18 @@ jobs:
docker buildx build --output "type=image,push=false" ${{ steps.prepare.outputs.buildx_args }}
-
name: Login to DockerHub
if: github.ref == 'refs/heads/master'
if: contains(github.ref, '/heads/master') || contains(github.ref, '/tags/v')
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASS }}
-
name: Push docker images to Dockerhub
if: github.ref == 'refs/heads/master'
if: contains(github.ref, '/heads/master') || contains(github.ref, '/tags/v')
run: |
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }}
-
name: Inspect image
if: github.ref == 'refs/heads/master'
if: contains(github.ref, '/heads/master') || contains(github.ref, '/tags/v')
run: |
docker buildx imagetools inspect ${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }}