From 50288abc21b8fec30cd8a787e72996da7c01d91f Mon Sep 17 00:00:00 2001 From: Mitchell Marino Date: Thu, 15 Dec 2022 20:15:03 -0600 Subject: [PATCH] add ci files --- ci/audit.yml | 14 ++++++++++++++ ci/build-docker.yml | 14 ++++++++++++++ ci/build-linux.yml | 14 ++++++++++++++ ci/check-fmt.yml | 14 ++++++++++++++ ci/deploy.yml | 14 ++++++++++++++ ci/lint.yml | 14 ++++++++++++++ pipeline.yml | 23 ++++++++++++++++++++++- 7 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 ci/audit.yml create mode 100644 ci/build-docker.yml create mode 100644 ci/build-linux.yml create mode 100644 ci/check-fmt.yml create mode 100644 ci/deploy.yml create mode 100644 ci/lint.yml 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