Skip to content

Commit

Permalink
💚 (docker): Push latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Aug 13, 2024
1 parent 7856134 commit 56c1a8a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
file: ./Dockerfile
push: true
tags: xcsoft/busuanzi:${{ github.ref_name }}
-
# 如果不是 rc 和 beta 版本, 则推送 latest 标签
name: Push latest tag
if: contains(github.ref_name, 'v') && !contains(github.ref_name, 'rc') && !contains(github.ref_name, 'beta')
run: docker tag xcsoft/busuanzi:${{ github.ref_name }} xcsoft/busuanzi:latest && docker push xcsoft/busuanzi:latest


github-docker:
runs-on: ubuntu-latest
Expand All @@ -55,4 +61,8 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/soxft/busuanzi:${{ github.ref_name }}
tags: ghcr.io/soxft/busuanzi:${{ github.ref_name }}

- name: Push latest tag
if: contains(github.ref_name, 'v') && !contains(github.ref_name, 'rc') && !contains(github.ref_name, 'beta')
run: docker tag ghcr.io/soxft/busuanzi:${{ github.ref_name }} ghcr.io/soxft/busuanzi:latest && docker push ghcr.io/soxft/busuanzi:latest

0 comments on commit 56c1a8a

Please sign in to comment.