Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish snapshot docker images #6

Merged
merged 5 commits into from
Oct 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,13 @@ jobs:
- deploy:
name: Publish
command: |
if [[ "${CIRCLE_BRANCH}" == "develop" ]]; then
docker login -u "${DOCKERHUB_USERNAME}" -p "${DOCKERHUB_PASSWORD}"
./godelw docker push --tags=snapshot
fi
if [[ -n "${CIRCLE_TAG}" ]] ; then
docker login -u "${DOCKERHUB_USERNAME}" -p "${DOCKERHUB_PASSWORD}"
./godelw docker push
./godelw docker push --tags=latest,version
./godelw publish bintray \
--url https://api.bintray.com \
--subject palantir --repository releases --product policy-bot \
Expand Down
5 changes: 3 additions & 2 deletions godel/config/dist-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ products:
#!/usr/bin/env bash
cp -R docker/* ${CONTEXT_DIR}
tag-templates:
- "{{Repository}}palantirtechnologies/policy-bot:latest"
- "{{Repository}}palantirtechnologies/policy-bot:{{Version}}"
version: "{{Repository}}palantirtechnologies/policy-bot:{{Version}}"
latest: "{{Repository}}palantirtechnologies/policy-bot:latest"
snapshot: "{{Repository}}palantirtechnologies/policy-bot:snapshot"
publish:
group-id: com.palantir.policy-bot