-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(recipe-auto-pipeline): expect local compilation if docker tag is…
…n't supplied
- Loading branch information
Showing
3 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
import '../configure.js' | ||
|
||
import * as ConcourseTs from '@decentm/concourse-ts' | ||
import { create_auto_pipeline } from '@decentm/concourse-ts-recipe-auto-pipeline' | ||
|
||
import { git_ci } from '../resources/git' | ||
import { CliGroup } from './groups/cli' | ||
|
||
type Group = 'ci' | CliGroup | ||
|
||
const name = 'concourse-ts' | ||
|
||
const auto_pipeline = create_auto_pipeline<Group>({ | ||
resource: git_ci, | ||
path: `.ci/pipeline/${name}.yml`, | ||
}) | ||
|
||
export default () => { | ||
return new ConcourseTs.Pipeline<Group>('concourse-ts', (pipeline) => { | ||
pipeline.add_job( | ||
new ConcourseTs.Job('ci', (job) => { | ||
job.add_step(git_ci.as_get_step()) | ||
job.add_step( | ||
new ConcourseTs.SetPipelineStep('set-pipeline', (step) => { | ||
step.file = `${git_ci.name}/.ci/pipeline/concourse-ts.yml` | ||
step.set_pipeline = 'self' | ||
}) | ||
) | ||
}) | ||
) | ||
}) | ||
return new ConcourseTs.Pipeline<Group>(name, auto_pipeline()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters