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 c4b49e5 commit c97df16
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: 'Get Previous tag'
id: previoustag
uses: actions/checkout@v2
uses: actions/checkout@v3
- run: git fetch --prune --unshallow && TAG=$(git describe --tags --abbrev=0) && echo $TAG && echo "TAG="$TAG >> "$GITHUB_ENV"
- name: Check out the repo with tag
uses: actions/checkout@v3
with:
ref: ${{ env.TAG }}

- name: Push to Docker Hub
uses: docker/build-push-action@v1 # Info: https://github.com/docker/build-push-action/tree/releases/v1#tags
Expand Down

0 comments on commit c97df16

Please sign in to comment.