diff --git a/.lighthouse/pipeline-rust-test.yaml b/.lighthouse/pipeline-rust-test.yaml index 9a9582f..f456da2 100644 --- a/.lighthouse/pipeline-rust-test.yaml +++ b/.lighthouse/pipeline-rust-test.yaml @@ -43,6 +43,8 @@ spec: - name: report-pending taskRef: name: gitea-set-status + runAfter: + - fetch-repository params: - name: CONTEXT value: "$(params.JOB_NAME)" @@ -51,7 +53,7 @@ spec: - name: GITEA_HOST_URL value: code.fizz.buzz - name: SHA - value: "$(params.PULL_BASE_SHA)" + value: "$(tasks.fetch-repository.results.commit)" - name: DESCRIPTION value: "Build $(params.JOB_NAME) has started" - name: STATE @@ -76,7 +78,7 @@ spec: name: kaniko params: - name: IMAGE - value: "$(params.image-name):$(params.PULL_BASE_SHA)" + value: "$(params.image-name):$(tasks.fetch-repository.results.commit)" - name: CONTEXT value: $(params.path-to-image-context) - name: DOCKERFILE @@ -116,7 +118,7 @@ spec: - name: args value: ["$(params.args[*])"] - name: docker-image - value: "$(params.image-name):$(params.PULL_BASE_SHA)" + value: "$(params.image-name):$(tasks.fetch-repository.results.commit)" finally: - name: report-success when: @@ -133,7 +135,7 @@ spec: - name: GITEA_HOST_URL value: code.fizz.buzz - name: SHA - value: "$(params.PULL_BASE_SHA)" + value: "$(tasks.fetch-repository.results.commit)" - name: DESCRIPTION value: "Build $(params.JOB_NAME) has succeeded" - name: STATE @@ -155,7 +157,7 @@ spec: - name: GITEA_HOST_URL value: code.fizz.buzz - name: SHA - value: "$(params.PULL_BASE_SHA)" + value: "$(tasks.fetch-repository.results.commit)" - name: DESCRIPTION value: "Build $(params.JOB_NAME) has failed" - name: STATE diff --git a/.lighthouse/pipeline-rustfmt.yaml b/.lighthouse/pipeline-rustfmt.yaml index 5cf736a..4b506f9 100644 --- a/.lighthouse/pipeline-rustfmt.yaml +++ b/.lighthouse/pipeline-rustfmt.yaml @@ -51,6 +51,8 @@ spec: - name: report-pending taskRef: name: gitea-set-status + runAfter: + - fetch-repository params: - name: CONTEXT value: "$(params.JOB_NAME)" @@ -59,7 +61,7 @@ spec: - name: GITEA_HOST_URL value: code.fizz.buzz - name: SHA - value: "$(params.PULL_BASE_SHA)" + value: "$(tasks.fetch-repository.results.commit)" - name: DESCRIPTION value: "Build $(params.JOB_NAME) has started" - name: STATE @@ -92,7 +94,7 @@ spec: name: kaniko params: - name: IMAGE - value: "$(params.image-name):$(params.PULL_BASE_SHA)" + value: "$(params.image-name):$(tasks.fetch-repository.results.commit)" - name: CONTEXT value: $(params.path-to-image-context) - name: DOCKERFILE @@ -131,7 +133,7 @@ spec: - name: args value: ["$(params.args[*])"] - name: docker-image - value: "$(params.image-name):$(params.PULL_BASE_SHA)" + value: "$(params.image-name):$(tasks.fetch-repository.results.commit)" - name: commit-changes taskRef: name: git-cli @@ -172,7 +174,7 @@ spec: - name: GITEA_HOST_URL value: code.fizz.buzz - name: SHA - value: "$(params.PULL_BASE_SHA)" + value: "$(tasks.fetch-repository.results.commit)" - name: DESCRIPTION value: "Build $(params.JOB_NAME) has succeeded" - name: STATE @@ -194,7 +196,7 @@ spec: - name: GITEA_HOST_URL value: code.fizz.buzz - name: SHA - value: "$(params.PULL_BASE_SHA)" + value: "$(tasks.fetch-repository.results.commit)" - name: DESCRIPTION value: "Build $(params.JOB_NAME) has failed" - name: STATE