Skip to content

Commit

Permalink
publish docker image (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcampanini authored Oct 11, 2018
1 parent d4fd51f commit ad282d0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ jobs:
- *restore-godel-cache
- run: ./godelw dist
- run: ./godelw docker build --verbose
- deploy:
name: Publish
command: |
if [[ -n "${CIRCLE_TAG}" ]] ; then
docker login -u "${DOCKERHUB_USERNAME}" -p "${DOCKERHUB_PASSWORD}"
./godelw docker push
./godelw publish bintray \
--url https://api.bintray.com \
--subject palantir --repository releases --product policy-bot \
--username "${BINTRAY_USERNAME}" --password "${BINTRAY_PASSWORD}" \
--downloads-list --publish policy-bot
fi
### Workflows ###

Expand Down
4 changes: 3 additions & 1 deletion godel/config/dist-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ products:
cp -R ./server/templates ${DIST_WORK_DIR}
cp -R ./build/static ${DIST_WORK_DIR}
docker:
repository: hub.docker.com
docker-builders:
policy-bot:
type: default
Expand All @@ -40,4 +41,5 @@ products:
tag-templates:
- "{{Repository}}palantirtechnologies/policy-bot:latest"
- "{{Repository}}palantirtechnologies/policy-bot:{{Version}}"
publish: {}
publish:
group-id: com.palantir.policy-bot

0 comments on commit ad282d0

Please sign in to comment.