We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28c4e65 commit e25d31bCopy full SHA for e25d31b
.github/workflows/publish_docker.yml
@@ -45,6 +45,18 @@ jobs:
45
TAG=latest
46
SHOULD_BUILD_PUSH=false
47
48
+ # Extract ref type and name
49
+ if [[ "$GITHUB_REF" == refs/heads/* ]]; then
50
+ GITHUB_REF_TYPE="branch"
51
+ GITHUB_REF_NAME="${GITHUB_REF#refs/heads/}"
52
+ elif [[ "$GITHUB_REF" == refs/tags/* ]]; then
53
+ GITHUB_REF_TYPE="tag"
54
+ GITHUB_REF_NAME="${GITHUB_REF#refs/tags/}"
55
+ else
56
+ GITHUB_REF_TYPE=""
57
+ GITHUB_REF_NAME=""
58
+ fi
59
+
60
# Determine tag and build indicator based on context
61
if [[ "$GITHUB_REF_TYPE" == "branch" ]]; then
62
case "$GITHUB_REF_NAME" in
0 commit comments