mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
ci: proper build matrix using workflows
reference: https://discuss.circleci.com/t/build-matrix-configuration/14448
This commit is contained in:
parent
d4b237308a
commit
139d991f45
1 changed files with 35 additions and 28 deletions
|
|
@ -1,9 +1,6 @@
|
|||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: circleci/golang:1.12
|
||||
- image: circleci/golang:latest
|
||||
|
||||
build-shared: &build-shared
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
|
|
@ -30,6 +27,15 @@ jobs:
|
|||
paths:
|
||||
- ~/.cache/go-build
|
||||
|
||||
jobs:
|
||||
"golang:1.12":
|
||||
<<: *build-shared
|
||||
docker:
|
||||
- image: circleci/golang:1.12
|
||||
"golang:latest":
|
||||
<<: *build-shared
|
||||
docker:
|
||||
- image: circleci/golang:latest
|
||||
release:
|
||||
docker:
|
||||
- image: circleci/golang:1.12
|
||||
|
|
@ -62,7 +68,8 @@ workflows:
|
|||
version: 2
|
||||
build:
|
||||
jobs:
|
||||
- build
|
||||
- "golang:1.12"
|
||||
- "golang:latest"
|
||||
release:
|
||||
jobs:
|
||||
- release:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue