Add workflow config
This commit is contained in:
Родитель
0ba422b88a
Коммит
840c838699
|
@ -1,7 +1,7 @@
|
|||
version: 2
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-docker:
|
||||
docker:
|
||||
- image: ubuntu:18.04
|
||||
|
||||
|
@ -28,4 +28,33 @@ jobs:
|
|||
|
||||
- run:
|
||||
name: Build
|
||||
command: docker build docker/
|
||||
command: docker build -t mozilla/ci-base-docker docker/
|
||||
|
||||
deploy-docker:
|
||||
docker:
|
||||
- image: ubuntu:18.04
|
||||
|
||||
steps:
|
||||
- run:
|
||||
name: Dummy Deploy
|
||||
command: echo TODO implement deployment
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
|
||||
pull_request:
|
||||
filters:
|
||||
branches:
|
||||
exclude: master
|
||||
jobs:
|
||||
- builder-docker
|
||||
|
||||
master:
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
jobs:
|
||||
- build-docker
|
||||
- deploy-docker:
|
||||
requires:
|
||||
- build-docker
|
Загрузка…
Ссылка в новой задаче