Skip to content

Instantly share code, notes, and snippets.

@jdforsythe
Created August 9, 2019 19:45
Show Gist options
  • Save jdforsythe/ab10dcabc85d80120628814254702f53 to your computer and use it in GitHub Desktop.
Save jdforsythe/ab10dcabc85d80120628814254702f53 to your computer and use it in GitHub Desktop.
version: 2.1
orbs:
docker-publish: circleci/[email protected]
workflows:
build:
jobs:
- docker-publish/publish:
deploy: false
context: dgw
extra_build_args: --build-arg NPM_TOKEN=${NPM_TOKEN}
publish:
jobs:
- docker-publish/publish:
image: sensource/dgw-wrk-insert-service-stats
tag: $CIRCLE_TAG
context: dgw
extra_build_args: --build-arg NPM_TOKEN=${NPM_TOKEN}
filters:
# publish on any version tag
tags:
only: /v[0-9]+(\.[0-9]+)*/
# ignore branch commits (they are build but not published)
branches:
ignore: /.*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment