Skip to content

Commit

Permalink
♻️ tgz binary on release
Browse files Browse the repository at this point in the history
  • Loading branch information
nlepage committed Oct 3, 2019
1 parent 4281526 commit d45f6ca
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,17 @@ jobs:
paths:
- frontend/marcel-frontend.tgz

archive_marcel:
executor: std_executor
steps:
- attach_workspace:
at: .
- run: tar czf marcel.tgz marcel
- persist_to_workspace:
root: .
paths:
- marcel.tgz

deploy_integration:
executor: gcloud_executor
steps:
Expand All @@ -161,7 +172,7 @@ jobs:
- attach_workspace:
at: .
- run: go get github.com/tcnksm/ghr
- run: mkdir assets && mv backoffice/marcel-backoffice.tgz frontend/marcel-frontend.tgz marcel assets
- run: mkdir assets && mv backoffice/marcel-backoffice.tgz frontend/marcel-frontend.tgz marcel.tgz assets
- run: ghr -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} ${CIRCLE_TAG} assets

filters-all: &filters-all
Expand Down Expand Up @@ -213,13 +224,17 @@ workflows:
filters: *filters-tag
requires:
- build_frontend
- archive_marcel:
filters: *filters-tag
requires:
- build_marcel_nopackr
- deploy_integration:
filters: *filters-master
requires:
- docker_build_marcel
- publish_github_release:
filters: *filters-tag
requires:
- build_marcel_nopackr
- archive_backoffice
- archive_frontend
- archive_marcel

0 comments on commit d45f6ca

Please sign in to comment.