Skip to content

Commit

Permalink
Merge pull request #61 from prometheus-community/bjk/publish_steps
Browse files Browse the repository at this point in the history
Customize release publishing step
  • Loading branch information
SuperQ authored Jan 9, 2020
2 parents 59041bb + 4d09e24 commit f5ae2bc
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,34 @@ jobs:
- run: sudo pip install codespell
- run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum,*pem" -L uint,packages\',uptodate

publish_master:
executor: golang

steps:
- prometheus/setup_build_environment
- prometheus/publish_images:
registry: docker.io
organization: prometheuscommunity
login_variable: DOCKER_LOGIN
password_variable: DOCKER_PASSWORD

publish_release:
executor: golang

steps:
- prometheus/setup_build_environment
- run: promu crossbuild tarballs
- run: promu checksum .tarballs
- run: promu release .tarballs
- store_artifacts:
path: .tarballs
destination: releases
- prometheus/publish_release_images:
registry: docker.io
organization: prometheuscommunity
login_variable: DOCKER_LOGIN
password_variable: DOCKER_PASSWORD

workflows:
version: 2
bind_exporter:
Expand All @@ -47,15 +75,15 @@ workflows:
filters:
tags:
only: /.*/
- prometheus/publish_master:
- publish_master:
context: org-context
requires:
- test
- build
filters:
branches:
only: master
- prometheus/publish_release:
- publish_release:
context: org-context
requires:
- test
Expand Down

0 comments on commit f5ae2bc

Please sign in to comment.