-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api): create worker model flag (#3922)
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
- Loading branch information
Showing
25 changed files
with
262 additions
and
84 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
2 changes: 2 additions & 0 deletions
2
contrib/workflow-templates/demo-workflow-hello-world/1.application.yml
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
version: v1.0 | ||
name: [[.name]] |
5 changes: 5 additions & 0 deletions
5
contrib/workflow-templates/demo-workflow-hello-world/1.environment.yml
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: [[.name]]-dev | ||
values: | ||
url: | ||
type: string | ||
value: http://dev.[[.name]] |
16 changes: 16 additions & 0 deletions
16
contrib/workflow-templates/demo-workflow-hello-world/1.pipeline.yml
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: v1.0 | ||
name: build-[[.id]] | ||
stages: | ||
- build | ||
- package | ||
jobs: | ||
- job: build | ||
stage: build | ||
steps: | ||
- script: | ||
- echo "Building my application" | ||
- job: package | ||
stage: package | ||
steps: | ||
- script: | ||
- echo "Packaging my application" |
5 changes: 5 additions & 0 deletions
5
contrib/workflow-templates/demo-workflow-hello-world/2.environment.yml
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: [[.name]]-preprod | ||
values: | ||
url: | ||
type: string | ||
value: http://preprod.[[.name]] |
10 changes: 10 additions & 0 deletions
10
contrib/workflow-templates/demo-workflow-hello-world/2.pipeline.yml
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: v1.0 | ||
name: deploy-[[.id]] | ||
stages: | ||
- deploy | ||
jobs: | ||
- job: deploy | ||
stage: deploy | ||
steps: | ||
- script: | ||
- echo "Deploying my application at {{.cds.env.url}}" |
5 changes: 5 additions & 0 deletions
5
contrib/workflow-templates/demo-workflow-hello-world/3.environment.yml
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: [[.name]]-prod | ||
values: | ||
url: | ||
type: string | ||
value: http://prod.[[.name]] |
10 changes: 10 additions & 0 deletions
10
contrib/workflow-templates/demo-workflow-hello-world/3.pipeline.yml
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: v1.0 | ||
name: it-[[.id]] | ||
stages: | ||
- it | ||
jobs: | ||
- job: it | ||
stage: it | ||
steps: | ||
- script: | ||
- echo "Testing my application at {{.cds.env.url}}" |
24 changes: 24 additions & 0 deletions
24
contrib/workflow-templates/demo-workflow-hello-world/README.md
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Description | ||
|
||
*This is a demo tempate* | ||
|
||
The template will generates a Hello World workflow with usual steps: | ||
- build and package | ||
- deploy on development environment | ||
- it test | ||
- deploy on pre-production and production environments | ||
|
||
It's the same as demo-workflow-skeleton workflow template, but does not contain dependency with a Git Repository Manager. So that, it's pretty | ||
useful to discover CDS Workflow with the [Ready To Run](https://ovh.github.io/cds/hosting/ready-to-run/docker-compose/) without having a Git | ||
repository manager attached. | ||
|
||
# How to import it on your CDS Instance | ||
|
||
This template is linked to group: `shared.infra` | ||
|
||
If you want to import it, you have to be CDS Administrator on your CDS Instance. | ||
|
||
``` bash | ||
# import from github | ||
cdsctl template push https://raw.githubusercontent.com/ovh/cds/master/contrib/workflow-templates/demo-workflow-hello-world/demo-workflow-hello-world.yml | ||
``` |
15 changes: 15 additions & 0 deletions
15
contrib/workflow-templates/demo-workflow-hello-world/demo-workflow-hello-world.yml
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
slug: demo-workflow-hello-world | ||
name: Demo workflow hello world | ||
group: shared.infra | ||
description: A template that generates a Hello World Workflow. It's the same as demo-workflow-skeleton, but does not contain dependency with a Git Repository Manager. | ||
workflow: workflow.yml | ||
pipelines: | ||
- 1.pipeline.yml | ||
- 2.pipeline.yml | ||
- 3.pipeline.yml | ||
applications: | ||
- 1.application.yml | ||
environments: | ||
- 1.environment.yml | ||
- 2.environment.yml | ||
- 3.environment.yml |
38 changes: 38 additions & 0 deletions
38
contrib/workflow-templates/demo-workflow-hello-world/workflow.yml
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: [[.name]] | ||
version: v1.0 | ||
workflow: | ||
build: | ||
pipeline: build-[[.id]] | ||
application: [[.name]] | ||
deploy-dev: | ||
pipeline: deploy-[[.id]] | ||
application: [[.name]] | ||
environment: [[.name]]-dev | ||
depends_on: | ||
- build | ||
it-dev: | ||
pipeline: it-[[.id]] | ||
application: [[.name]] | ||
environment: [[.name]]-dev | ||
depends_on: | ||
- deploy-dev | ||
fork: | ||
depends_on: | ||
- it-dev | ||
deploy-preprod: | ||
pipeline: deploy-[[.id]] | ||
application: [[.name]] | ||
environment: [[.name]]-preprod | ||
when: | ||
- success | ||
depends_on: | ||
- fork | ||
deploy-prod: | ||
pipeline: deploy-[[.id]] | ||
application: [[.name]] | ||
environment: [[.name]]-prod | ||
when: | ||
- manual | ||
- success | ||
depends_on: | ||
- fork |
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
Oops, something went wrong.