Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xy2z authored Feb 16, 2022
1 parent 07f77c6 commit 1c9b2e8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- 'master'
release:
types: [published]

jobs:
docker:
Expand All @@ -25,9 +27,20 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
# Push to master branch - push "latest" tag
name: Build and push
if: github.event_name == 'push'
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: xy2z/pinedocs:latest
-
# Push the new release
name: Build and push
if: github.event_name == 'release'
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: xy2z/pinedocs-test:${{ github.event.release.tag_name }}

0 comments on commit 1c9b2e8

Please sign in to comment.