Multi-step tasks #9782
DanielWiltshire-CH
started this conversation in
Ideas
Replies: 1 comment
|
Jobs and task configs are what you're looking for. You may be having a little trouble mapping Concourse's terms and concepts onto Github Action's. Here are some Github action specific points I'll make to try and help those making the transition from GA to Concourse:
Taking your second example and fleshing it out into a Concourse pipeline would look like this: resources:
# First we define all the external things our pipeline needs to interact with
- name: repo
type: git
source: ... # see https://github.com/concourse/git-resource/
# I'm going to pretend for this example that my repo contains:
# - Dockerfile and app code I'm building
# - Task config yaml files in a `ci/` folder
- name: image
type: registry-image
source: ... # see https://github.com/concourse/registry-image-resource
jobs:
- name: build-image
plan:
# Define our input(s)
- get: repo
# Run our tasks
- task: lint
file: repo/ci/tasks/lint.yml
- task: build
file: repo/ci/tasks/build.yml
- task: sbom
file: repo/ci/tasks/sbom.yml
# Upload the image (aka "outputs")
- put: image
params:
image: some-output-from-build-task/imageI hope that helps! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello!
I'd like to know if Concourse supports multi-step tasks similar to GitHub Actions composite actions and reusable workflows? 🚀
The goal is to reduce the amount of YAML duplication and promote reuse, and I'm looking for something like this:
Theoretical Examples
All reactions