Move filter from job to workflow level
This commit is contained in:
parent
d4bbec2094
commit
48a8f30a89
|
@ -1,9 +1,6 @@
|
|||
version: 2
|
||||
jobs:
|
||||
validate:
|
||||
branches:
|
||||
only:
|
||||
- Packer-AMIBuilder
|
||||
docker:
|
||||
- image: hashicorp/packer:latest
|
||||
working_directory: ~/packer
|
||||
|
@ -13,9 +10,6 @@ jobs:
|
|||
name: Validate base
|
||||
command: packer validate ./base/base.json
|
||||
build-base:
|
||||
branches:
|
||||
only:
|
||||
- Packer-AMIBuilder
|
||||
docker:
|
||||
- image: hashicorp/packer:latest
|
||||
working_directory: ~/packer
|
||||
|
@ -42,3 +36,11 @@ workflows:
|
|||
requires:
|
||||
- approve
|
||||
- validate
|
||||
|
||||
workflow_filters: &workflow_filters
|
||||
requires:
|
||||
- approve
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- Packer-AMIBuilder
|
||||
|
|
Loading…
Reference in New Issue