Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Oct 7, 2019
1 parent 9912b12 commit d8694d0
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,23 @@ jobs:
command: |
SEMVER=$(docker run --rm -v "$(pwd):/repo" gittools/gitversion:latest-linux-netcoreapp2.1 /repo /showvariable SemVer /nofetch)
docker push $IMAGE_NAME:$SEMVER
- run:
name: Docker Save
command: |
mkdir artifacts
SEMVER=$(docker run --rm -v "$(pwd):/repo" gittools/gitversion:latest-linux-netcoreapp2.1 /repo /showvariable SemVer /nofetch)
docker save splunk/scs:$SEMVER | gzip -c > artifacts/oci_container.tar.gz
- run:
name: BYOE Config
command: |
tar rvf artifacts/baremetal.tar -C package etc
tar rvf artifacts/baremetal.tar -C package/sbin entrypoint.sh
- run:
name: "Publish Release on GitHub"
command: |
go get -u github.com/tcnksm/ghr
SEMVER=$(docker run --rm -v "$(pwd):/repo" gittools/gitversion:latest-linux-netcoreapp2.1 /repo /showvariable SemVer /nofetch)
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${SEMVER} ./artifacts/
publish-edge:
environment:
Expand Down Expand Up @@ -316,11 +333,11 @@ workflows:
requires:
- dgoss
- test-unit
# filters:
# branches:
# only:
# - master
# - develop
filters:
branches:
only:
- master
- develop
- publish-edge:
requires:
- dgoss
Expand Down

0 comments on commit d8694d0

Please sign in to comment.