Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan faircloth committed Aug 27, 2019
1 parent c1c84fe commit a5424ce
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,28 @@ jobs:
name: Docker push tag
command: docker push $IMAGE_NAME:edge

publish-version:
environment:
IMAGE_NAME: rfaircloth/scs
docker:
- image: circleci/buildpack-deps:stretch
steps:
- setup_remote_docker:
docker_layer_caching: true
- run:
name: Docker Login
command: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run:
name: Docker pull
command: docker pull $IMAGE_NAME:$CIRCLE_SHA1
- run:
name: Docker tag image
command: |
SEMVER=$(docker run --rm -v "$(pwd):/repo" gittools/gitversion:latest-linux-netcoreapp2.1 /repo | jq '.["SemVer"]' | sed s/\"//g)
docker tag $IMAGE_NAME:$CIRCLE_SHA1 splunk/scs:$SEMVER
- run:
name: Docker push tag
command: docker push splunk/scs:$SEMVER
publish-latest:
environment:
IMAGE_NAME: rfaircloth/scs
Expand Down Expand Up @@ -262,6 +284,14 @@ workflows:
branches:
only:
- develop
- publish-version:
requires:
- dgoss
- test-unit
filters:
branches:
only:
- master
- publish-latest:
requires:
- dgoss
Expand Down

0 comments on commit a5424ce

Please sign in to comment.