From 23544f32f6fa542d411df9950d28d135aa96f5eb Mon Sep 17 00:00:00 2001 From: Georgy Malkov Date: Tue, 12 Nov 2024 11:07:40 +0300 Subject: [PATCH] Fix retag docker image for multiarch (#239) --- .github/workflows/update-docker-tags.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/update-docker-tags.yml b/.github/workflows/update-docker-tags.yml index f6edc136..6c2bed61 100644 --- a/.github/workflows/update-docker-tags.yml +++ b/.github/workflows/update-docker-tags.yml @@ -35,6 +35,7 @@ jobs: echo "US_VERSION=$US_VERSION" >> "$GITHUB_ENV" echo "CONTROL_API_VERSION=$CONTROL_API_VERSION" >> "$GITHUB_ENV" echo "DATA_API_VERSION=$DATA_API_VERSION" >> "$GITHUB_ENV" + - uses: docker/setup-buildx-action@v3 - name: Login to the Container registry uses: docker/login-action@v3.0.0 with: @@ -43,11 +44,6 @@ jobs: password: ${{ secrets.GH_REGISTRY_TOKEN }} - name: Pull images and push with release tag run: | - docker pull ${{ env.REGISTRY }}/${{ env.UI_IMAGE_NAME }}:${{ env.UI_VERSION }} - docker tag ${{ env.REGISTRY }}/${{ env.UI_IMAGE_NAME }}:${{ env.UI_VERSION }} ${{ env.REGISTRY }}/${{ env.UI_IMAGE_NAME }}:release - docker push ${{ env.REGISTRY }}/${{ env.UI_IMAGE_NAME }}:release - - docker pull ${{ env.REGISTRY }}/${{ env.US_IMAGE_NAME }}:${{ env.US_VERSION }} - docker tag ${{ env.REGISTRY }}/${{ env.US_IMAGE_NAME }}:${{ env.US_VERSION }} ${{ env.REGISTRY }}/${{ env.US_IMAGE_NAME }}:release - docker push ${{ env.REGISTRY }}/${{ env.US_IMAGE_NAME }}:release - + docker buildx imagetools create --tag ${{ env.REGISTRY }}/${{ env.UI_IMAGE_NAME }}:release ${{ env.REGISTRY }}/${{ env.UI_IMAGE_NAME }}:${{ env.UI_VERSION }} + docker buildx imagetools create --tag ${{ env.REGISTRY }}/${{ env.US_IMAGE_NAME }}:release ${{ env.REGISTRY }}/${{ env.US_IMAGE_NAME }}:${{ env.US_VERSION }} + docker buildx imagetools create --tag ${{ env.REGISTRY }}/${{ env.UI_IMAGE_NAME }}:release-e2e ${{ env.REGISTRY }}/${{ env.UI_IMAGE_NAME }}:${{ env.UI_VERSION }}-e2e