Skip to content

Commit

Permalink
Fix retag docker image for multiarch (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
goshander authored Nov 12, 2024
1 parent c68aea8 commit 23544f3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/update-docker-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
Expand All @@ -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

0 comments on commit 23544f3

Please sign in to comment.