Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
peteryang1756 authored Jul 31, 2024
1 parent 8154f26 commit 496ebe4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ jobs:
- name: Tag and Push Docker image
if: github.event_name == 'push'
run: |
docker tag $GITHUB_REPOSITORY $GITHUB_REPOSITORY:$SHORT_SHA
docker push $GITHUB_REPOSITORY:$SHORT_SHA
docker tag ssangyongsports logto:$SHORT_SHA
docker push ssangyongsports/logto:$SHORT_SHA
echo "SHORT_SHA: ${SHORT_SHA}"
env:
SHORT_SHA: ${{ steps.vars.outputs.short_sha }}

- name: Tag LATEST and Push Docker image
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
docker tag $GITHUB_REPOSITORY $GITHUB_REPOSITORY:latest
docker push $GITHUB_REPOSITORY:latest
docker tag ssangyongsports logto:latest
docker push ssangyongsports/logto:latest
echo "LATEST deployed!"
- name: Tag RELEASE and Push Docker image
Expand Down

0 comments on commit 496ebe4

Please sign in to comment.