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 May 7, 2020
1 parent 6616d9e commit eeacb62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,18 @@ jobs:
name: Build Docker
command: |
if [ -n "${CIRCLE_TAG}" ]; then VERSION=${CIRCLE_TAG}; else VERSION="$(./semtag getcurrent)"; fi
VERSION_DOCKER_MMP=$(echo $VERSION | sed -n 's/v\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p')
echo ${VERSION} >package/VERSION
echo ${CIRCLE_SHA1}=${VERSION}
docker build --build-arg BRANCH=${SYSLOG} package -t splunk/scs:${CIRCLE_SHA1}
docker tag splunk/scs:${CIRCLE_SHA1} splunk/scs:${VERSION}
docker tag splunk/scs:${CIRCLE_SHA1} splunk/scs:${VERSION_DOCKER_MMP}
docker tag splunk/scs:${CIRCLE_SHA1} splunk/scs:${CIRCLE_SHA1:0:7}
docker push splunk/scs:${CIRCLE_SHA1}
docker push splunk/scs:${VERSION}
docker push splunk/scs:${VERSION_DOCKER_MMP}
docker push splunk/scs:${CIRCLE_SHA1:0:7}
docker save splunk/scs:${VERSION} | gzip -c > /tmp/workspace/oci_container.tar.gz
docker save splunk/scs:${VERSION_DOCKER_MMP} | gzip -c > /tmp/workspace/oci_container.tar.gz
- go/install
- run:
name: "Publish on GitHub"
Expand Down

0 comments on commit eeacb62

Please sign in to comment.