From 4c12001d19abeda2f946993a1c7657a80ba51482 Mon Sep 17 00:00:00 2001 From: moreal Date: Thu, 28 Nov 2024 16:29:17 +0900 Subject: [PATCH] ci(gh-actions): fix tagging docker image --- .github/workflows/push_docker_image.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push_docker_image.yml b/.github/workflows/push_docker_image.yml index b58e6b7ae..6caf2cd39 100644 --- a/.github/workflows/push_docker_image.yml +++ b/.github/workflows/push_docker_image.yml @@ -76,14 +76,13 @@ jobs: --password '${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}' - name: push git tagged version run: | - docker pull ${{ matrix.docker.repo }}:git-${{ github.sha }} if [[ -z "${{ github.event.inputs.imageTag }}" ]]; then export IMAGE_TAG=${{ github.ref_name }} else export IMAGE_TAG=${{ github.event.inputs.imageTag }} fi - docker tag \ - ${{ matrix.docker.repo }}:git-${{ github.sha }} \ - ${{ matrix.docker.repo }}:$IMAGE_TAG - docker push ${{ matrix.docker.repo }}:$IMAGE_TAG + docker buildx imagetools create \ + --progress=plain \ + --tag ${{ matrix.docker.repo }}:$IMAGE_TAG \ + ${{ matrix.docker.repo }}:git-${{ github.sha }}