ci: push the latest only on master [skip test]

This commit is contained in:
Amin Yahyaabadi 2024-03-24 00:58:14 -07:00
parent 1f53bd746a
commit 526d06e31f
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
1 changed files with 5 additions and 0 deletions

View File

@ -263,6 +263,11 @@ jobs:
- name: Tag - name: Tag
run: | run: |
docker tag ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:${{ matrix.container.tag }} ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest docker tag ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:${{ matrix.container.tag }} ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest
- name: Push Latest
if: ${{ github.event_name != 'pull_request' }}
run: |
docker login -u ${{ vars.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
docker push ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest docker push ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest
- name: Test - name: Test