diff --git a/pipelines/tet-admin-ui-dev.yml b/pipelines/tet-admin-ui-dev.yml new file mode 100644 index 0000000000..0121e805ab --- /dev/null +++ b/pipelines/tet-admin-ui-dev.yml @@ -0,0 +1,52 @@ +# Continuous integration (CI) triggers cause a pipeline to run whenever you push +# an update to the specified branches or you push specified tags. +trigger: + batch: true + branches: + include: + - main + paths: + include: + - frontend/tet/admin/** + - frontend/* + exclude: + - frontend/**/browser-tests + - frontend/**/__tests__ + - README.md + +# Pull request (PR) triggers cause a pipeline to run whenever a pull request is +# opened with one of the specified target branches, or when updates are made to +# such a pull request. +# +# GitHub creates a new ref when a pull request is created. The ref points to a +# merge commit, which is the merged code between the source and target branches +# of the pull request. +# +# Opt out of pull request validation +pr: none + +# By default, use self-hosted agents +pool: Default + +resources: + repositories: + # Azure DevOps repository + - repository: yjdh-tet-pipelines + type: git + # Azure DevOps project/repository + name: yjdh-tet/yjdh-tet-pipelines + +extends: + # Filename in Azure DevOps Repository + template: components/yjdh-tet-admin-ui/pipelines/yjdh-tet-admin-ui-dev.yml@yjdh-tet-pipelines + # parameters: + # Application build arguments and config map values as key value pairs. + # Does not contain all buildArguments or configMap values, the rest located in yjdh-tet-pipelines + # The values here will override the values defined in the yjdh-tet-pipelines repository + # buildArgs: + # DEBUG: 1 + # configMap: # pod environment variables + # DEBUG: 1 + ## Default value to nodeVersion is set on template. + ## Used tool version + # nodeVersion: 18 diff --git a/pipelines/tet-admin-ui-release.yml b/pipelines/tet-admin-ui-release.yml new file mode 100644 index 0000000000..46d9f21ee5 --- /dev/null +++ b/pipelines/tet-admin-ui-release.yml @@ -0,0 +1,50 @@ +# Continuous integration (CI) triggers cause a pipeline to run whenever you push +# an update to the specified branches or you push specified tags. +trigger: + batch: true + tags: + include: + - tet-admin-* + +# Pull request (PR) triggers cause a pipeline to run whenever a pull request is +# opened with one of the specified target branches, or when updates are made to +# such a pull request. +# +# GitHub creates a new ref when a pull request is created. The ref points to a +# merge commit, which is the merged code between the source and target branches +# of the pull request. +# +# Opt out of pull request validation +pr: none + +# By default, use self-hosted agents +pool: Default + +resources: + repositories: + # Azure DevOps repository + - repository: yjdh-tet-pipelines + type: git + # Azure DevOps project/repository + name: yjdh-tet/yjdh-tet-pipelines + +extends: + # Filename in Azure DevOps Repository + template: components/yjdh-tet-admin-ui/pipelines/yjdh-tet-admin-ui-release.yml@yjdh-tet-pipelines + # parameters: + # Application build arguments and config map values as key value pairs. + # Does not contain all buildArguments or configMap values, the rest located in yjdh-tet-pipelines + # The values here will override the values defined in the yjdh-tet-pipelines repository + ## Staging definitions + # buildArgsStage: + # DEBUG: 1 + # configMapStage: # pod environment variables + # DEBUG: 1 + ## Production definitions + # buildArgs: + # DEBUG: 1 + # configMap: # pod environment variables + # DEBUG: 1 + ## Default value to nodeVersion is set on template. + ## Used tool version + # nodeVersion: 18 diff --git a/pipelines/tet-api-dev.yml b/pipelines/tet-api-dev.yml new file mode 100644 index 0000000000..a6c2e2034a --- /dev/null +++ b/pipelines/tet-api-dev.yml @@ -0,0 +1,50 @@ +# Continuous integration (CI) triggers cause a pipeline to run whenever you push +# an update to the specified branches or you push specified tags. +trigger: + batch: true + branches: + include: + - main + paths: + include: + - backend/tet/** + - backend/shared/** + exclude: + - README.md + +# Pull request (PR) triggers cause a pipeline to run whenever a pull request is +# opened with one of the specified target branches, or when updates are made to +# such a pull request. +# +# GitHub creates a new ref when a pull request is created. The ref points to a +# merge commit, which is the merged code between the source and target branches +# of the pull request. +# +# Opt out of pull request validation +pr: none + +# By default, use self-hosted agents +pool: Default + +resources: + repositories: + # Azure DevOps repository + - repository: yjdh-tet-pipelines + type: git + # Azure DevOps project/repository + name: yjdh-tet/yjdh-tet-pipelines + +extends: + # Filename in Azure DevOps Repository + template: components/yjdh-tet-api/pipelines/yjdh-tet-api-dev.yml@yjdh-tet-pipelines + # parameters: + # Application build arguments and config map values as key value pairs. + # Does not contain all buildArguments or configMap values, the rest located in yjdh-tet-pipelines + # The values here will override the values defined in the yjdh-tet-pipelines repository + # buildArgs: + # DEBUG: 1 + # configMap: # pod environment variables + # DEBUG: 1 + ## Default value to pythonVersion is set on template. + ## Used tool version + # pythonVersion: 3.11 diff --git a/pipelines/tet-api-release.yml b/pipelines/tet-api-release.yml new file mode 100644 index 0000000000..d0dbfa969e --- /dev/null +++ b/pipelines/tet-api-release.yml @@ -0,0 +1,49 @@ +# Continuous integration (CI) triggers cause a pipeline to run whenever you push +# an update to the specified branches or you push specified tags. +trigger: + batch: true + tags: + include: + - tet-backend-* + +# Pull request (PR) triggers cause a pipeline to run whenever a pull request is +# opened with one of the specified target branches, or when updates are made to +# such a pull request. +# +# GitHub creates a new ref when a pull request is created. The ref points to a +# merge commit, which is the merged code between the source and target branches +# of the pull request. +# +# Opt out of pull request validation +pr: none + +# By default, use self-hosted agents +pool: Default + +resources: + repositories: + # Azure DevOps repository + - repository: yjdh-tet-pipelines + type: git + # Azure DevOps project/repository + name: yjdh-tet/yjdh-tet-pipelines + +extends: + # Filename in Azure DevOps Repository + template: components/yjdh-tet-api/pipelines/yjdh-tet-api-release.yml@yjdh-tet-pipelines + # parameters: + # Application build arguments and config map values as key value pairs. + # Does not contain all buildArguments or configMap values, the rest located in yjdh-tet-pipelines + # The values here will override the values defined in the yjdh-tet-pipelines repository + ## Staging definitions + # buildArgsStage: + # DEBUG: 1 + # configMapStage: # pod environment variables + # DEBUG: 1 + ## Production definitions + ## Production is using staging image + # configMap: # pod environment variables + # DEBUG: 1 + ## Default value to pythonVersion is set on template. + ## Used tool version + # pythonVersion: 3.11 diff --git a/azure-pipelines/tet-review.yml b/pipelines/tet-review.yml similarity index 95% rename from azure-pipelines/tet-review.yml rename to pipelines/tet-review.yml index 10c1a3b119..e363cfd8c0 100644 --- a/azure-pipelines/tet-review.yml +++ b/pipelines/tet-review.yml @@ -23,7 +23,7 @@ pr: - main paths: include: - - azure-pipelines/tet-review.yml + - pipelines/tet-review.yml - backend/docker/tet.Dockerfile - backend/tet/** - backend/shared/** @@ -54,7 +54,7 @@ extends: # Filename in Azure DevOps Repository (note possible -ui or -api) # Django example: azure-pipelines-PROJECTNAME-api-release.yml # Drupal example: azure-pipelines-drupal-release.yml - template: azure-pipelines-tet-review.yml@yjdh-tet-pipelines + template: pipelines/yjdh-tet-review.yml@yjdh-tet-pipelines # Application build arguments and config map values as key value pairs. # The values here will override the values defined in the yjdh-tet-pipelines repository. # for example diff --git a/pipelines/tet-youth-ui-dev.yml b/pipelines/tet-youth-ui-dev.yml new file mode 100644 index 0000000000..68cad36252 --- /dev/null +++ b/pipelines/tet-youth-ui-dev.yml @@ -0,0 +1,52 @@ +# Continuous integration (CI) triggers cause a pipeline to run whenever you push +# an update to the specified branches or you push specified tags. +trigger: + batch: true + branches: + include: + - main + paths: + include: + - frontend/tet/youth/** + - frontend/* + exclude: + - frontend/**/browser-tests + - frontend/**/__tests__ + - README.md + +# Pull request (PR) triggers cause a pipeline to run whenever a pull request is +# opened with one of the specified target branches, or when updates are made to +# such a pull request. +# +# GitHub creates a new ref when a pull request is created. The ref points to a +# merge commit, which is the merged code between the source and target branches +# of the pull request. +# +# Opt out of pull request validation +pr: none + +# By default, use self-hosted agents +pool: Default + +resources: + repositories: + # Azure DevOps repository + - repository: yjdh-tet-pipelines + type: git + # Azure DevOps project/repository + name: yjdh-tet/yjdh-tet-pipelines + +extends: + # Filename in Azure DevOps Repository + template: components/yjdh-tet-youth-ui/pipelines/yjdh-tet-youth-ui-dev.yml@yjdh-tet-pipelines + # parameters: + # Application build arguments and config map values as key value pairs. + # Does not contain all buildArguments or configMap values, the rest located in yjdh-tet-pipelines + # The values here will override the values defined in the yjdh-tet-pipelines repository + # buildArgs: + # DEBUG: 1 + # configMap: # pod environment variables + # DEBUG: 1 + ## Default value to nodeVersion is set on template. + ## Used tool version + # nodeVersion: 18 diff --git a/pipelines/tet-youth-ui-release.yml b/pipelines/tet-youth-ui-release.yml new file mode 100644 index 0000000000..46bdb4e0bc --- /dev/null +++ b/pipelines/tet-youth-ui-release.yml @@ -0,0 +1,50 @@ +# Continuous integration (CI) triggers cause a pipeline to run whenever you push +# an update to the specified branches or you push specified tags. +trigger: + batch: true + tags: + include: + - tet-youth-* + +# Pull request (PR) triggers cause a pipeline to run whenever a pull request is +# opened with one of the specified target branches, or when updates are made to +# such a pull request. +# +# GitHub creates a new ref when a pull request is created. The ref points to a +# merge commit, which is the merged code between the source and target branches +# of the pull request. +# +# Opt out of pull request validation +pr: none + +# By default, use self-hosted agents +pool: Default + +resources: + repositories: + # Azure DevOps repository + - repository: yjdh-tet-pipelines + type: git + # Azure DevOps project/repository + name: yjdh-tet/yjdh-tet-pipelines + +extends: + # Filename in Azure DevOps Repository + template: components/yjdh-tet-youth-ui/pipelines/yjdh-tet-youth-ui-release.yml@yjdh-tet-pipelines + # parameters: + # Application build arguments and config map values as key value pairs. + # Does not contain all buildArguments or configMap values, the rest located in yjdh-tet-pipelines + # The values here will override the values defined in the yjdh-tet-pipelines repository + ## Staging definitions + # buildArgsStage: + # DEBUG: 1 + # configMapStage: # pod environment variables + # DEBUG: 1 + ## Production definitions + # buildArgs: + # DEBUG: 1 + # configMap: # pod environment variables + # DEBUG: 1 + ## Default value to nodeVersion is set on template. + ## Used tool version + # nodeVersion: 18