-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Job template #8786
Labels
Comments
alexec
added
type/feature
Feature request
area/spec
Changes to the workflow specification.
labels
May 17, 2022
alexec
added a commit
to alexec/argo-workflows
that referenced
this issue
May 19, 2022
Signed-off-by: Alex Collins <alex_collins@intuit.com>
alexec
added a commit
to alexec/argo-workflows
that referenced
this issue
May 19, 2022
Signed-off-by: Alex Collins <alex_collins@intuit.com>
alexec
added a commit
to alexec/argo-workflows
that referenced
this issue
May 19, 2022
Signed-off-by: Alex Collins <alex_collins@intuit.com>
@alexec I like the direction! I think we need to also enhance the cache restore/save to be according to files: job:
image: golang:1.18
workingDir: /go/src/github.com/golang/example
steps:
- run: git clone -v -b "{{workflow.parameters.branch}}" --single-branch --depth 1 https://github.com/golang/example.git .
- get_artifact:
name: GOMODCACHE
path: /go/pkg/mod
optional: true
s3:
key: "github.com/golang/examples/{{ hash 'go.mod' }}/GOMODCACHE"
- run: go mod download -x
- save_artifact:
name: GOMODCACHE
path: /go/pkg/mod
optional: true
s3:
key: "github.com/golang/examples/{{ hash 'go.mod' }}/GOMODCACHE"
- run: go build ./...
- run: |
go install github.com/jstemmer/go-junit-report@latest
go install github.com/alexec/junit2html@latest
trap 'cat test.out | go-junit-report | junit2html > test-report.html' EXIT
go test -v ./... 2>&1 > test.out
|
I've spend a few hours today advancing my PoC. It is ready for alpha testing.
Testing out the feature will demonstrate that users are interested in it. |
i tink can close as can achieve this already |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Summary
Workflows is used by some as a CI solution. Yet it is really needs a new template type to be comparable to GitHub Actions.
The template type could be called “job”. A job runs a series of steps. Each step runs a command (including a shell script) and the job fails if the command fails. Steps execute in sequence. The job fails if any step fails. Steps execute conditionally, usually only if the job is passing.
How’s this different to a steps template? Each step of a job runs in the same container. This makes storing and restoring build and caches faster and simpler.
It also allows users to visualise steps within a container.
Code changes will be similar to adding the container-set template.
Use Cases
When would you use this?
Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.
The text was updated successfully, but these errors were encountered: