mirror of
https://github.com/bretzel-app/crumbs.git
synced 2026-10-12 20:06:57 +02:00
fix: update docker-compose only after Docker image is pushed
Move docker-compose.yml update from release.sh (pre-build) to a post-release job in both bump.yml and release.yml. This ensures the image tag in docker-compose only appears on main after the image exists on ghcr.io, preventing Dokploy from trying to pull a non-existent image. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
c83d0f6968
commit
8f40626f2f
+1
-2
@@ -60,8 +60,7 @@ echo "Bumping $BUMP version..."
|
||||
npm version "$BUMP" -m "chore: bump version to %s" --no-git-tag-version
|
||||
|
||||
NEW_VERSION=$(node -p "require('./package.json').version")
|
||||
sed -i'' -e "s|image: ghcr.io/bretzel-app/crumbs:.*|image: ghcr.io/bretzel-app/crumbs:${NEW_VERSION}|" docker-compose.yml
|
||||
git add package.json docker-compose.yml
|
||||
git add package.json
|
||||
git commit -m "chore: bump version to $NEW_VERSION"
|
||||
git tag "v$NEW_VERSION"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user