Skip to content

Commit

Permalink
Retag via pull and push instead of import
Browse files Browse the repository at this point in the history
  • Loading branch information
robertomest committed Aug 1, 2024
1 parent 29e9083 commit fb0e998
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ jobs:
run: |
az acr login -n ${{ secrets.ACR_NAME }}
for service in api-orchestrator worker cache; do
export SERVICE_TAG=unlisted/farmai/terravibes/$service
export SERVICE_TAG=${{ secrets.ACR_NAME }}.azurecr.io/unlisted/farmai/terravibes/$service
export DEV_TAG=$SERVICE_TAG:dev
export MAIN_TAG=$SERVICE_TAG:${{ github.run_id }}
az acr import --name ${{ secrets.ACR_NAME }} \
--source ${{ secrets.ACR_NAME }}.azurecr.io/$DEV_TAG \
--image $MAIN_TAG --force || exit 1
echo Retagging from $DEV_TAG to $MAIN_TAG
docker pull $DEV_TAG
docker tag $DEV_TAG $MAIN_TAG
docker push $MAIN_TAG
done
- name: Adjust default tag
run: |
Expand Down

0 comments on commit fb0e998

Please sign in to comment.