From c8e2110f697958367e282a4019a197c162ddef1e Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sun, 24 Mar 2024 01:06:41 -0700 Subject: [PATCH] ci: tag latest in the same step [skip ci] --- .github/workflows/CI.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 41b3994e..056846d6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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