diff --git a/ci/audit.yml b/ci/audit.yml new file mode 100644 index 0000000..d6edafb --- /dev/null +++ b/ci/audit.yml @@ -0,0 +1,14 @@ +platform: linux + +image_resource: + type: registry-image + source: {repository: rust} + +inputs: +- name: repo + +run: + path: cargo + args: ["test"] + dir: "repo" + diff --git a/ci/build-docker.yml b/ci/build-docker.yml new file mode 100644 index 0000000..d6edafb --- /dev/null +++ b/ci/build-docker.yml @@ -0,0 +1,14 @@ +platform: linux + +image_resource: + type: registry-image + source: {repository: rust} + +inputs: +- name: repo + +run: + path: cargo + args: ["test"] + dir: "repo" + diff --git a/ci/build-linux.yml b/ci/build-linux.yml new file mode 100644 index 0000000..d6edafb --- /dev/null +++ b/ci/build-linux.yml @@ -0,0 +1,14 @@ +platform: linux + +image_resource: + type: registry-image + source: {repository: rust} + +inputs: +- name: repo + +run: + path: cargo + args: ["test"] + dir: "repo" + diff --git a/ci/check-fmt.yml b/ci/check-fmt.yml new file mode 100644 index 0000000..8dc8b3f --- /dev/null +++ b/ci/check-fmt.yml @@ -0,0 +1,14 @@ +platform: linux + +image_resource: + type: registry-image + source: {repository: rust} + +inputs: +- name: repo + +run: + path: cargo + args: ["fmt", "--", "--check"] + dir: "repo" + diff --git a/ci/deploy.yml b/ci/deploy.yml new file mode 100644 index 0000000..d6edafb --- /dev/null +++ b/ci/deploy.yml @@ -0,0 +1,14 @@ +platform: linux + +image_resource: + type: registry-image + source: {repository: rust} + +inputs: +- name: repo + +run: + path: cargo + args: ["test"] + dir: "repo" + diff --git a/ci/lint.yml b/ci/lint.yml new file mode 100644 index 0000000..d6edafb --- /dev/null +++ b/ci/lint.yml @@ -0,0 +1,14 @@ +platform: linux + +image_resource: + type: registry-image + source: {repository: rust} + +inputs: +- name: repo + +run: + path: cargo + args: ["test"] + dir: "repo" + diff --git a/pipeline.yml b/pipeline.yml index b04ac04..e2520ad 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -10,4 +10,25 @@ jobs: 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-linux + 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