Skip to content

Commit 526d06e

Browse files
committed
ci: push the latest only on master [skip test]
1 parent 1f53bd7 commit 526d06e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ jobs:
263263
- name: Tag
264264
run: |
265265
docker tag ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:${{ matrix.container.tag }} ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest
266+
267+
- name: Push Latest
268+
if: ${{ github.event_name != 'pull_request' }}
269+
run: |
270+
docker login -u ${{ vars.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
266271
docker push ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest
267272
268273
- name: Test

0 commit comments

Comments
 (0)