Skip to content

Commit

Permalink
Tag CircleCI pipeline number (#102)
Browse files Browse the repository at this point in the history
It is useful to know the pipeline number as well as just the build
number.
See https://circleci.com/docs/2.0/pipeline-variables/

Closes #26
  • Loading branch information
johnboyes authored Apr 25, 2020
1 parent bfdf167 commit c8d3137
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ workflows:
name: Evaluate and export docker after build tags
command: |
echo "export AFTER_BUILD_TAGS=$(docker-tags -v)" >> $BASH_ENV
tag_after_build: $AFTER_BUILD_TAGS
tag_after_build: |
$AFTER_BUILD_TAGS,circleci-pipeline-<< pipeline.number >>
- release:
# Only run on git tag pushes
filters:
Expand Down

0 comments on commit c8d3137

Please sign in to comment.