diff --git a/azure-pipelines-pull-request.yml.dist b/azure-pipelines-pull-request.yml.dist deleted file mode 100644 index b77b7f2d..00000000 --- a/azure-pipelines-pull-request.yml.dist +++ /dev/null @@ -1,34 +0,0 @@ -# File: drupal-helfi/azure-pipelines.yml - -# Continuous integration (CI) triggers cause a pipeline to run whenever you push -# an update to the specified branches or you push specified tags. -# -# Opt out of CI triggers -trigger: none - -# 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. -pr: - branches: - include: - - main - - dev - -# By default, use self-hosted agents -pool: Default - -resources: - repositories: - # Azure DevOps repository - - repository: drupal-REPLACEME - type: git - # project/repository - name: drupal-helfi/drupal-REPLACEME - -extends: - template: azure-pipelines-drupal-pull-request.yml@drupal-REPLACEME diff --git a/azure-pipelines-release.yml.dist b/azure-pipelines-release.yml.dist deleted file mode 100644 index f99d4d37..00000000 --- a/azure-pipelines-release.yml.dist +++ /dev/null @@ -1,37 +0,0 @@ -# File: drupal-helfi/azure-pipelines.yml - -# Continuous integration (CI) triggers cause a pipeline to run whenever you push -# an update to the specified branches or you push specified tags. -trigger: - branches: - include: - - release/* - - refs/tags/* - 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 - -resources: - repositories: - # Azure DevOps repository - - repository: drupal-REPLACEME - type: git - # project/repository - name: drupal-helfi/drupal-REPLACEME - -extends: - template: azure-pipelines-drupal-release.yml@drupal-REPLACEME diff --git a/azure-pipelines-tyo-yrittaminen-devtest.yml b/azure-pipelines-tyo-yrittaminen-devtest.yml new file mode 100644 index 00000000..e8aad83e --- /dev/null +++ b/azure-pipelines-tyo-yrittaminen-devtest.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: + branches: + include: + - master + 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: tyo-yrittaminen-pipelines + type: git + # Azure DevOps project/repository + name: tyo-yrittaminen/tyo-yrittaminen-pipelines + +extends: + # Filename in Azure DevOps Repository (note possible -ui or -api) + # Django example: azure-pipelines-PROJECTNAME-api-master.yml + # Drupal example: azure-pipelines-drupal-master.yml + template: azure-pipelines-tyo-yrittaminen-devtest.yml@tyo-yrittaminen-pipelines + # Image tag name for Fuse projects + #parameters: + #imagetag: ${{ parameters.imagetag }} diff --git a/azure-pipelines-master.yml.dist b/azure-pipelines-tyo-yrittaminen-stageprod.yml similarity index 50% rename from azure-pipelines-master.yml.dist rename to azure-pipelines-tyo-yrittaminen-stageprod.yml index a91a679b..1375acd3 100644 --- a/azure-pipelines-master.yml.dist +++ b/azure-pipelines-tyo-yrittaminen-stageprod.yml @@ -1,14 +1,12 @@ -# File: drupal-helfi/azure-pipelines.yml - # Continuous integration (CI) triggers cause a pipeline to run whenever you push # an update to the specified branches or you push specified tags. trigger: branches: include: - - dev + - main paths: exclude: - - README.md + - 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 @@ -24,13 +22,25 @@ 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: drupal-REPLACEME - type: git - # project/repository - name: drupal-helfi/drupal-REPLACEME + # Azure DevOps repository + - repository: tyo-yrittaminen-pipelines + type: git + # Azure DevOps project/repository + name: tyo-yrittaminen/tyo-yrittaminen-pipelines extends: - template: azure-pipelines-drupal-master.yml@drupal-REPLACEME + # 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-tyo-yrittaminen-stageprod.yml@tyo-yrittaminen-pipelines + #parameters: + #imagetag: ${{ parameters.imagetag }}