Skip to content

Commit

Permalink
ci: Fixing cross build part2. (#525)
Browse files Browse the repository at this point in the history
Signed-off-by: Bartek Plotka <[email protected]>
  • Loading branch information
bwplotka authored Sep 18, 2018
1 parent 6bbf9e2 commit dca749e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ jobs:
make test
# Cross build is needed for publish_release but needs to be done outside of docker.
cross_build:
machine: true
working_directory: /home/circleci/.go_workspace/src/github.com/improbable-eng/thanos
steps:
- checkout
- run: make crossbuild
- persist_to_workspace:
root: .
paths:
- .build

publish_master:
docker:
# Available from https://hub.docker.com/r/circleci/golang/
Expand Down Expand Up @@ -67,7 +79,6 @@ jobs:
- run: echo 'export PATH=${HOME}/bin:${PATH}' >> ${BASH_ENV}
- attach_workspace:
at: .
- run: make crossbuild
- run: make tarballs-release
- store_artifacts:
path: .tarballs
Expand All @@ -92,9 +103,18 @@ workflows:
filters:
branches:
only: master
- cross_build:
requires:
- test
filters:
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
branches:
ignore: /.*/
- publish_release:
requires:
- test
- cross_build
filters:
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
Expand Down

0 comments on commit dca749e

Please sign in to comment.