Skip to content

Commit

Permalink
expand env vars in script rather than "pipeline templating"
Browse files Browse the repository at this point in the history
  • Loading branch information
ole-ve committed Dec 6, 2024
1 parent 75857db commit 9b8c2da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fi
STATUS=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://ghcr.io/v2/${{ github.repository }}/manifests/${{ IMAGE_TAG }})
https://ghcr.io/v2/${{ github.repository }}/manifests/$IMAGE_TAG)
if [ "$STATUS" -ne 200 ]; then
echo "Image with TAG $IMAGE_TAG not found in GitHub Container Registry. Aborting..."
Expand All @@ -49,7 +49,7 @@ jobs:

- name: Set image tag in DOcker Compose File
run: |
sed -i "s/\$IMAGE_TAG/${{ IMAGE_TAG }}/g" docker-compose.prod.yml
sed -i "s/\$IMAGE_TAG/$IMAGE_TAG/g" docker-compose.prod.yml
- name: Copy Docker Compose File From Repo to VM Host
uses: appleboy/[email protected]
Expand Down

0 comments on commit 9b8c2da

Please sign in to comment.