fix: update docker-compose image tag after CI builds the image

Move docker-compose version pinning from release script to the release
workflow so it runs after the image is pushed to GHCR. Dokploy will
always find the referenced image.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Frederic Cabassut
2026-03-06 23:48:28 +01:00
co-authored by Claude Opus 4.6
parent bd9762600e
commit 56b0510789
2 changed files with 13 additions and 5 deletions
+12
View File
@@ -54,3 +54,15 @@ jobs:
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
- name: Pin docker-compose image to released version
env:
VERSION: ${{ github.ref_name }}
run: |
VERSION="${VERSION#v}"
sed -i "s|image: ghcr.io/bretzel-app/crumbs:.*|image: ghcr.io/bretzel-app/crumbs:${VERSION}|" docker-compose.yml
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add docker-compose.yml
git commit -m "chore: pin docker-compose to v${VERSION} [skip ci]"
git push origin HEAD:main