update pipeline, and check use local docker image
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ platform: linux
|
||||
|
||||
image_resource:
|
||||
type: registry-image
|
||||
source: {repository: rust}
|
||||
source: {repository: rust-all}
|
||||
|
||||
inputs:
|
||||
- name: repo
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
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
|
||||
trigger: true
|
||||
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
|
||||
trigger: true
|
||||
passed: [test, build]
|
||||
- task: deploy
|
||||
file: repo/ci/deploy.yml
|
||||
Reference in New Issue
Block a user