💾 Archived View for source.community › jeffdecola › my-go-tools › raw › develop › ci › pipeline.yml captured on 2021-12-17 at 13:26:06.
-=-=-=-=-=-=-
# my-go-tools pipeline.yml jobs: - name: job-readme-github-pages plan: - get: my-go-tools trigger: true - put: resource-slack-alert params: channel: '#jeff-builds' text: "From my-go-tools: STARTED job-readme-github-pages in concourse ci." - put: resource-repo-status params: { state: "pending", description: "STARTED job-readme-github-pages in concourse ci.", commit: "my-go-tools" } - task: task-readme-github-pages file: my-go-tools/ci/tasks/task-readme-github-pages.yml on_success: do: - put: my-go-tools params: repository: my-go-tools-updated - put: resource-slack-alert params: channel: '#jeff-builds' text: "From my-go-tools: PASSED job-readme-github-pages in concourse ci." - put: resource-repo-status params: { state: "success", description: "PASSED job-readme-github-pages in concourse ci", commit: "my-go-tools" } on_failure: do: - put: resource-slack-alert params: channel: '#jeff-builds' text: "From my-go-tools: FAILED job-readme-github-pages in concourse ci." - put: resource-repo-status params: { state: "failure", description: "FAILED job-readme-github-pages in concourse ci", commit: "my-go-tools" } - name: job-unit-tests plan: - get: my-go-tools trigger: true passed: [job-readme-github-pages] - put: resource-slack-alert params: channel: '#jeff-builds' text: "From my-go-tools: STARTED job-unit-tests in concourse ci." - put: resource-repo-status params: { state: "pending", description: "STARTED job-unit-tests in concourse ci.", commit: "my-go-tools" } - task: task-unit-tests file: my-go-tools/ci/tasks/task-unit-tests.yml on_success: do: - put: my-go-tools params: repository: my-go-tools - put: resource-slack-alert params: channel: '#jeff-builds' text_file: coverage-results/test_coverage.txt text: | From my-go-tools: PASSED job-unit-tests in concourse ci. $TEXT_FILE_CONTENT - put: resource-repo-status params: { state: "success", description: "PASSED job-unit-tests in concourse ci", commit: "my-go-tools" } on_failure: do: - put: resource-slack-alert params: channel: '#jeff-builds' text: "From my-go-tools: FAILED job-unit-tests in concourse ci." - put: resource-repo-status params: { state: "failure", description: "FAILED job-unit-tests in concourse ci.", commit: "my-go-tools" } resource_types: - name: slack-notification type: docker-image source: repository: cfcommunity/slack-notification-resource tag: latest - name: github-status type: docker-image source: repository: dpb587/github-status-resource tag: master resources: - name: my-go-tools type: git source: #uri: https://github.com/jeffdecola/my-go-tools uri: git@github.com:jeffdecola/my-go-tools.git branch: master private_key: {{git_private_key}} - name: resource-slack-alert type: slack-notification source: url: {{slack_url}} - name: resource-repo-status type: github-status source: repository: jeffdecola/my-go-tools access_token: {{repo_github_token}}