From c0e59863448b098e9cd82dfc508893338139e0e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vitalijus=20Al=C5=A1auskas?= Date: Mon, 13 Feb 2023 12:01:33 +0200 Subject: [PATCH 1/2] Create azure-pipelines-staging.yml --- azure-pipelines-staging.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 azure-pipelines-staging.yml diff --git a/azure-pipelines-staging.yml b/azure-pipelines-staging.yml new file mode 100644 index 00000000..0e16df20 --- /dev/null +++ b/azure-pipelines-staging.yml @@ -0,0 +1,47 @@ +# 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: + 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 + +# Image tag name for Fuse projects +#parameters: +#- name: imagetag +# displayName: Image tag to be built and/or deployed +# type: string +# default: latest + +resources: + repositories: + # Azure DevOps repository + - repository: kasvatus-koulutus-pipelines + type: git + # Azure DevOps project/repository + name: kasvatus-koulutus/kasvatus-koulutus-pipelines + +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-kasvatus-koulutus-staging.yml@kasvatus-koulutus-pipelines + #parameters: + #imagetag: ${{ parameters.imagetag }} From f34f272cfe27500fa574750234c2f5a89aa33b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vitalijus=20Al=C5=A1auskas?= Date: Mon, 13 Feb 2023 12:02:07 +0200 Subject: [PATCH 2/2] Create azure-pipelines-prod.yml --- azure-pipelines-prod.yml | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 azure-pipelines-prod.yml diff --git a/azure-pipelines-prod.yml b/azure-pipelines-prod.yml new file mode 100644 index 00000000..80250093 --- /dev/null +++ b/azure-pipelines-prod.yml @@ -0,0 +1,47 @@ +# Continuous integration (CI) triggers cause a pipeline to run whenever you push +# an update to the specified branches or you push specified tags. +trigger: none +# batch: true +# branches: +# include: +# - main +# paths: +# 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 + +# Image tag name for Fuse projects +#parameters: +#- name: imagetag +# displayName: Image tag to be built and/or deployed +# type: string +# default: latest + +resources: + repositories: + # Azure DevOps repository + - repository: kasvatus-koulutus-pipelines + type: git + # Azure DevOps project/repository + name: kasvatus-koulutus/kasvatus-koulutus-pipelines + +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-kasvatus-koulutus-prod.yml@kasvatus-koulutus-pipelines + #parameters: + #imagetag: ${{ parameters.imagetag }}