Skip to content

Commit

Permalink
ci: tag latest in the same step [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Mar 24, 2024
1 parent 526d06e commit c8e2110
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8e2110

Please sign in to comment.