Skip to content

Commit

Permalink
ci: use correct outputs from releaseplease action
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Clerkx committed Nov 21, 2023
1 parent 2c56bc6 commit 1d9915f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ jobs:
- name: Build image and push tag after web release
# We push tags here because tags pushed by release-please do not trigger the tag-images workflow
if: ${{ steps.release.outputs['.--release_created'] }}
if: ${{ steps.release.outputs['release_created'] }}
env:
FULL_IMAGE_TO_PUSH_W_TAG: ${{ vars.AZURE_CONTAINER_REGISTRY_NAME }}.azurecr.io/data-management-suite/web
run: |
az acr login --name ${{ vars.AZURE_CONTAINER_REGISTRY_NAME }}
TAG_TO_PUSH=$(echo "${{ steps.release.outputs['.--tag_name']}}"| awk '{split($0,a,"web-"); print a[2]}')
TAG_TO_PUSH=$(echo "${{ steps.release.outputs['tag_name']}}"| awk '{split($0,a,"web-"); print a[2]}')
echo "TAG_TO_PUSH: $TAG_TO_PUSH"
docker buildx build --platform linux/amd64 --tag ${{ env.FULL_IMAGE_TO_PUSH_W_TAG }}:${{ github.sha }} --tag ${{ env.FULL_IMAGE_TO_PUSH_W_TAG }}:$TAG_TO_PUSH --push .

0 comments on commit 1d9915f

Please sign in to comment.