Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: Build & Publish Docker Image

on:
push:
branches: [main]
branches: [main, develop]
tags: ["v*.*.*"]
pull_request:
branches: [main, develop]
workflow_dispatch:
Comment thread
sourcery-ai[bot] marked this conversation as resolved.

permissions:
contents: read
Expand Down Expand Up @@ -140,6 +141,11 @@ jobs:
TAGS="${IMAGE}:${VERSION},${IMAGE}:latest"
elif [[ "${GH_REF}" == refs/heads/main ]]; then
TAGS="${IMAGE}:latest,${IMAGE}:main-${SHA_SHORT}"
elif [[ "${GH_REF}" == refs/heads/develop ]]; then
TAGS="${IMAGE}:develop,${IMAGE}:develop-${SHA_SHORT}"
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
else
echo "::error::Unsupported ref ${GH_REF} — no publish tags derived (expected main, develop, or a v* tag)." >&2
exit 1
fi

echo "tags=${TAGS}" >> "$GITHUB_OUTPUT"
Expand Down
Loading