Skip to content

Commit

Permalink
Merge pull request #3309 from snyk/chore/v2-prepare-release-job
Browse files Browse the repository at this point in the history
chore(ci): persist v2 artifacts in a single job
  • Loading branch information
Jahed Ahmed authored Jun 9, 2022
2 parents 4876b68 + d795b92 commit bbb0e08
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -626,13 +626,21 @@ jobs:
- save_cache:
key: go-build-{{ arch }}-{{ checksum "cliv2/go.sum" }}
paths: [/home/circleci/go/pkg/mod]
- store_artifacts:
path: ./cliv2/bin
- persist_to_workspace:
root: .
paths:
- ./cliv2/bin

v2-prepare-release:
executor: linux
working_directory: /home/circleci/snyk
steps:
- checkout
- attach_workspace:
at: .
- store_artifacts:
path: ./cliv2/bin

v2-test-linux-amd64:
executor: linux
working_directory: /home/circleci/snyk
Expand Down Expand Up @@ -1019,7 +1027,6 @@ workflows:
requires:
- v2 / Build (linux/amd64)
test_snyk_command: /mnt/ramdisk/snyk/cliv2/bin/snyk_linux_amd64

- v2-sign-darwin-amd64:
name: v2 / Sign (darwin/amd64)
context: snyk-macos-signing
Expand All @@ -1030,3 +1037,10 @@ workflows:
context: snyk-windows-signing
requires:
- v2 / Build (windows/amd64)
- v2-prepare-release:
name: v2 / Prepare Release
requires:
- v2 / Build (linux/amd64)
- v2 / Build (linux/arm64)
- v2 / Sign (darwin/amd64)
- v2 / Sign (windows/amd64)

0 comments on commit bbb0e08

Please sign in to comment.