Skip to content

Commit 03824ce

Browse files
authored
chore(ci): Build calibnet; fix cd/staging regex (#1094)
1 parent d23f21c commit 03824ce

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.circleci/config.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ jobs:
7070
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
7171
sanitized_branch=`echo $CIRCLE_BRANCH | sed 's:/:-:g'`
7272
tag_suffix=$(echo "$CIRCLE_SHA1" | cut -c 1-8)
73-
make docker-calibnet-push LILY_IMAGE_TAG=${sanitized_branch}-${tag_suffix}-calibnet
73+
tag_date=$(date +%Y%m%d%H%M)
74+
make docker-calibnet-push LILY_IMAGE_TAG=${sanitized_branch}-${tag_date}-${tag_suffix}-calibnet
7475
publish-production-image-from-branch-for-butterflynet:
7576
executor: dockerizer
7677
steps:
@@ -84,7 +85,8 @@ jobs:
8485
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
8586
sanitized_branch=`echo $CIRCLE_BRANCH | sed 's:/:-:g'`
8687
tag_suffix=$(echo "$CIRCLE_SHA1" | cut -c 1-8)
87-
LILY_IMAGE_TAG=${sanitized_branch}-${tag_suffix}-butterflynet make docker-butterflynet-push
88+
tag_date=$(date +%Y%m%d%H%M)
89+
make docker-butterflynet-push LILY_IMAGE_TAG=${sanitized_branch}-${tag_date}-${tag_suffix}-butterflynet
8890
publish-production-image-from-semver-tag-for-mainnet:
8991
executor: dockerizer
9092
steps:
@@ -303,7 +305,7 @@ jobs:
303305
# used in `build-docker-images` workflow below
304306
branch_filters: &branch_filters
305307
branches:
306-
only: /^cd\/staging$/
308+
only: /^cd/staging$/
307309
tags:
308310
ignore: /.*/
309311

@@ -331,13 +333,13 @@ workflows:
331333
- test-docker-calibnet-dev
332334
build-docker-images:
333335
jobs:
336+
# only publish staging images for mainnet and calibnet
334337
- publish-production-image-from-branch-for-mainnet:
335338
filters:
336339
<<: *branch_filters
337-
# only publish staging images for mainnet
338-
#- publish-production-image-from-branch-for-calibnet:
339-
#filters:
340-
#<<: *branch_filters
340+
- publish-production-image-from-branch-for-calibnet:
341+
filters:
342+
<<: *branch_filters
341343
#- publish-production-image-from-branch-for-butterflynet:
342344
#filters:
343345
#<<: *branch_filters

0 commit comments

Comments
 (0)