diff --git a/azure-pipelines-release.yml.dist b/azure-pipelines-devtest.yml similarity index 53% rename from azure-pipelines-release.yml.dist rename to azure-pipelines-devtest.yml index f99d4d37..2a7ef760 100644 --- a/azure-pipelines-release.yml.dist +++ b/azure-pipelines-devtest.yml @@ -1,12 +1,9 @@ -# 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/* + - dev paths: exclude: - README.md @@ -25,13 +22,26 @@ 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 + - repository: kasvatus-koulutus-pipelines type: git - # project/repository - name: drupal-helfi/drupal-REPLACEME + # Azure DevOps project/repository + name: kasvatus-koulutus/kasvatus-koulutus-pipelines extends: - template: azure-pipelines-drupal-release.yml@drupal-REPLACEME + # Filename in Azure DevOps Repository (note possible -ui or -api) + # Django example: azure-pipelines-kasvatus-koulutus-api-master.yml + # Drupal example: azure-pipelines-drupal-master.yml + template: azure-pipelines-kasvatus-koulutus-devtest.yml@kasvatus-koulutus-pipelines + # Image tag name for Fuse projects + #parameters: + #imagetag: ${{ parameters.imagetag }} 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-master.yml.dist b/azure-pipelines-stageprod.yml similarity index 54% rename from azure-pipelines-master.yml.dist rename to azure-pipelines-stageprod.yml index a91a679b..885a3762 100644 --- a/azure-pipelines-master.yml.dist +++ b/azure-pipelines-stageprod.yml @@ -1,11 +1,9 @@ -# 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 @@ -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 + - repository: kasvatus-koulutus-pipelines type: git - # project/repository - name: drupal-helfi/drupal-REPLACEME + # Azure DevOps project/repository + name: kasvatus-koulutus/kasvatus-koulutus-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-kasvatus-koulutus-stageprod.yml@kasvatus-koulutus-pipelines + #parameters: + #imagetag: ${{ parameters.imagetag }}