Skip to content

Commit 97695f4

Browse files
tyler-daneclaude
andauthored
fix(ci): strip v prefix from Docker image version in staging deploy (#1766)
The Docker publish workflow tags images as 0.5.18 (without v prefix), but the deploy workflow was using v0.5.18 in compose.version, causing "image not found" errors. Now correctly strips the v prefix: - RELEASE_TAG=v0.5.18 (used for git refs in curl commands) - IMAGE_VERSION=0.5.18 (used for Docker image tags) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3198ae8 commit 97695f4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/deploy-staging.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ jobs:
4242
SUPERTOKENS_KEY: ${{ secrets.STAGING_SUPERTOKENS_KEY }}
4343
SUPERTOKENS_POSTGRES_PASSWORD: ${{ secrets.STAGING_SUPERTOKENS_POSTGRES_PASSWORD }}
4444
run: |
45-
echo "Deploying Compass ${RELEASE_TAG} to staging"
45+
# Strip 'v' prefix for Docker image tags (v0.5.18 -> 0.5.18)
46+
IMAGE_VERSION="${RELEASE_TAG#v}"
47+
echo "Deploying Compass ${RELEASE_TAG} (image version: ${IMAGE_VERSION}) to staging"
4648
mkdir -p ~/.ssh
4749
echo "$SSH_KEY" > ~/.ssh/staging_key
4850
chmod 600 ~/.ssh/staging_key
4951
ssh-keyscan -H "$SSH_HOST" >> ~/.ssh/known_hosts
5052
printf '%s\n' \
5153
'compose:' \
52-
" version: \"${RELEASE_TAG}\"" \
54+
" version: \"${IMAGE_VERSION}\"" \
5355
'runtime:' \
5456
' nodeEnv: production' \
5557
' timezone: Etc/UTC' \

0 commit comments

Comments
 (0)