@cryptotaxi247 / kubo / commits / 2ed366226

wip: use date instead of circleci build num

License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>

Oli Evans committed Mar 12, 2020 at 17:07 UTC 2ed366226ea61832475a18a0dcf3e774a6d52bf3
2 files changed +5 -5
.circleci/config.yml
+1 -1
@@ -336,7 +336,7 @@ jobs:
336 name: Publish Docker Image to Docker Hub
337 command: |
338 echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
339 - ./bin/push-docker-tags.sh "$CIRCLE_BUILD_NUM" "$CIRCLE_SHA1" "$CIRCLE_BRANCH" "$CIRCLE_TAG" dryrun
339 + ./bin/push-docker-tags.sh (date -u +%F) "$CIRCLE_SHA1" "$CIRCLE_BRANCH" "$CIRCLE_TAG" dryrun
340
341 workflows:
342 version: 2
bin/push-docker-tags.sh
+4 -4
@@ -16,16 +16,16 @@
16 #
17 # Example:
18 # # dry run. pass a 5th arg to have it print what it would do rather than do it.
19 -# ./push-docker-tags.sh 1 testingsha mybranch v1.0 dryrun
19 +# ./push-docker-tags.sh $(date -u +%F) testingsha master "" dryrun
20 #
21 # # push tag for the master branch
22 -# ./push-docker-tags.sh 1 testingsha master
22 +# ./push-docker-tags.sh $(date -u +%F) testingsha master
23 #
24 # # push tag for a release tag
25 -# ./push-docker-tags.sh 1 testingsha release v0.5.0
25 +# ./push-docker-tags.sh $(date -u +%F) testingsha release v0.5.0
26 #
27 # # Serving suggestion in circle ci - https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
28 -# ./push-docker-tags.sh "$CIRCLE_BUILD_NUM" "$CIRCLE_SHA1" "$CIRCLE_BRANCH" "$CIRCLE_TAG"
28 +# ./push-docker-tags.sh $(date -u +%F) "$CIRCLE_SHA1" "$CIRCLE_BRANCH" "$CIRCLE_TAG"
29 #
30 set -euo pipefail
31