Skip to content

Commit

Permalink
change variable from service to image
Browse files Browse the repository at this point in the history
  • Loading branch information
robertomest committed Aug 1, 2024
1 parent 497365b commit 2267ec9
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 @@ -24,10 +24,10 @@ jobs:
- name: Retag images
run: |
az acr login -n ${{ secrets.ACR_NAME }}
for service in api-orchestrator worker cache; do
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 }}
for image in api-orchestrator worker cache; do
export IMAGE_TAG=${{ secrets.ACR_NAME }}.azurecr.io/unlisted/farmai/terravibes/$image
export DEV_TAG=$IMAGE_TAG:dev
export MAIN_TAG=$IMAGE_TAG:${{ github.run_id }}
echo Retagging from $DEV_TAG to $MAIN_TAG
docker pull $DEV_TAG
docker tag $DEV_TAG $MAIN_TAG
Expand Down

0 comments on commit 2267ec9

Please sign in to comment.