ci: tag latest in the same step [skip ci]

This commit is contained in:
Amin Yahyaabadi 2024-03-24 01:06:41 -07:00
parent 526d06e31f
commit c8e2110f69
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
1 changed files with 1 additions and 11 deletions

View File

@ -258,17 +258,7 @@ jobs:
context: .
file: ./dev/docker/ci/${{ matrix.container.file }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:${{ matrix.container.tag }}
- name: Tag
run: |
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
tags: ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:${{ matrix.container.tag }},${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest
- name: Test
uses: docker/build-push-action@v5