Skip to content

Commit 933762c

Browse files
Feature/optimized cloudbuild (#43)
* fix: avoid Cloud Build substitution conflicts
1 parent 7b31906 commit 933762c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cloudbuild.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ steps:
1919
2020
# Add latest tag if on main branch
2121
if [ "$BRANCH_NAME" == "main" ]; then
22-
TAGS="$TAGS -t us-docker.pkg.dev/$PROJECT_ID/nebulous/server:latest"
22+
TAGS="$$TAGS -t us-docker.pkg.dev/$PROJECT_ID/nebulous/server:latest"
2323
fi
2424
2525
# Add version tag if TAG_NAME exists
2626
if [ -n "$TAG_NAME" ]; then
2727
echo "Detected tag: $TAG_NAME. Adding version tag."
28-
TAGS="$TAGS -t us-docker.pkg.dev/$PROJECT_ID/nebulous/server:$TAG_NAME"
28+
TAGS="$$TAGS -t us-docker.pkg.dev/$PROJECT_ID/nebulous/server:$TAG_NAME"
2929
fi
3030
3131
# Build and push all tags in one operation
3232
docker buildx build \
3333
--platform linux/amd64 \
34-
$TAGS \
34+
$$TAGS \
3535
--push \
3636
.
3737
@@ -40,4 +40,4 @@ timeout: "1800s"
4040
options:
4141
machineType: "E2_HIGHCPU_32"
4242
env:
43-
- DOCKER_BUILDKIT=1
43+
- DOCKER_BUILDKIT=1

0 commit comments

Comments
 (0)