|
70 | 70 | echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
|
71 | 71 | sanitized_branch=`echo $CIRCLE_BRANCH | sed 's:/:-:g'`
|
72 | 72 | 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 |
74 | 75 | publish-production-image-from-branch-for-butterflynet:
|
75 | 76 | executor: dockerizer
|
76 | 77 | steps:
|
|
84 | 85 | echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
|
85 | 86 | sanitized_branch=`echo $CIRCLE_BRANCH | sed 's:/:-:g'`
|
86 | 87 | 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 |
88 | 90 | publish-production-image-from-semver-tag-for-mainnet:
|
89 | 91 | executor: dockerizer
|
90 | 92 | steps:
|
@@ -303,7 +305,7 @@ jobs:
|
303 | 305 | # used in `build-docker-images` workflow below
|
304 | 306 | branch_filters: &branch_filters
|
305 | 307 | branches:
|
306 |
| - only: /^cd\/staging$/ |
| 308 | + only: /^cd/staging$/ |
307 | 309 | tags:
|
308 | 310 | ignore: /.*/
|
309 | 311 |
|
@@ -331,13 +333,13 @@ workflows:
|
331 | 333 | - test-docker-calibnet-dev
|
332 | 334 | build-docker-images:
|
333 | 335 | jobs:
|
| 336 | + # only publish staging images for mainnet and calibnet |
334 | 337 | - publish-production-image-from-branch-for-mainnet:
|
335 | 338 | filters:
|
336 | 339 | <<: *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 |
341 | 343 | #- publish-production-image-from-branch-for-butterflynet:
|
342 | 344 | #filters:
|
343 | 345 | #<<: *branch_filters
|
|
0 commit comments