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
|
version: 2
|
||||||
jobs:
|
|
||||||
build:
|
build-shared: &build-shared
|
||||||
docker:
|
|
||||||
- image: circleci/golang:1.12
|
|
||||||
- image: circleci/golang:latest
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
|
|
@ -30,6 +27,15 @@ jobs:
|
||||||
paths:
|
paths:
|
||||||
- ~/.cache/go-build
|
- ~/.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:
|
release:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.12
|
- image: circleci/golang:1.12
|
||||||
|
|
@ -62,7 +68,8 @@ workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build:
|
build:
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
- "golang:1.12"
|
||||||
|
- "golang:latest"
|
||||||
release:
|
release:
|
||||||
jobs:
|
jobs:
|
||||||
- release:
|
- release:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue