Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Jun 21, 2023
1 parent 439366a commit 320dd3c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ jobs:
uses: actions/checkout@v2
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: latest # Optional fallback tag to use when no tag can be found
uses: actions/checkout@v2
- run: git fetch --prune --unshallow && TAG=$(git describe --tags --abbrev=0)

- name: Push to Docker Hub
uses: docker/build-push-action@v1 # Info: https://github.com/docker/build-push-action/tree/releases/v1#tags
Expand All @@ -30,4 +29,4 @@ jobs:
repository: ${{ secrets.DOCKERHUB_REPOSITORY }}
tag_with_ref: true # Info: https://github.com/docker/build-push-action/tree/releases/v1#tag_with_ref
tag_with_sha: true # Info: https://github.com/docker/build-push-action/tree/releases/v1#tag_with_sha
tags: ${{ steps.previoustag.outputs.tag }}
tags: $TAG

0 comments on commit 320dd3c

Please sign in to comment.