33 lines
627 B
YAML
33 lines
627 B
YAML
resources:
|
|
- name: repo
|
|
type: git
|
|
source: {uri: "http://192.168.0.201:3000/mitchell/school_app_api.git"}
|
|
|
|
jobs:
|
|
- name: test
|
|
plan:
|
|
- get: repo
|
|
trigger: true
|
|
- task: test
|
|
file: repo/ci/test.yml
|
|
- task: check-fmt
|
|
file: repo/ci/check-fmt.yml
|
|
- task: lint
|
|
file: repo/ci/lint.yml
|
|
- task: audit
|
|
file: repo/ci/audit.yml
|
|
- name: build
|
|
plan:
|
|
- get: repo
|
|
passed: [test]
|
|
- task: build-linux
|
|
file: repo/ci/build-linux.yml
|
|
- task: build-docker
|
|
file: repo/ci/build-docker.yml
|
|
- name: deploy
|
|
plan:
|
|
- get: repo
|
|
passed: [test, build]
|
|
- task: deploy
|
|
file: repo/ci/deploy.yml
|