Skip to content

Commit

Permalink
Update Azure Devops pipelines (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
terovirtanen authored Aug 22, 2024
1 parent 48aea83 commit fd603af
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 142 deletions.
48 changes: 0 additions & 48 deletions azure-pipelines-devtest.yml

This file was deleted.

47 changes: 0 additions & 47 deletions azure-pipelines-prod.yml

This file was deleted.

47 changes: 0 additions & 47 deletions azure-pipelines-staging.yml

This file was deleted.

37 changes: 37 additions & 0 deletions pipelines/drupal-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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

# 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: kasvatus-koulutus-pipelines
type: git
# Azure DevOps project/repository
name: kasvatus-koulutus/kasvatus-koulutus-pipelines

extends:
# Filename in Azure DevOps Repository
template: components/drupal/pipelines/drupal-production.yml@kasvatus-koulutus-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 kasvatus-koulutus-pipelines
# The values here will override the values defined in the kasvatus-koulutus-pipelines repository
# buildArgs:
# DEBUG: 1
# configMap: # pod environment variables
# DEBUG: 1
47 changes: 47 additions & 0 deletions pipelines/drupal-staging.yml
Original file line number Diff line number Diff line change
@@ -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:
- '*.md'
- '.github/'
- 'pipelines/drupal-production.yml'
- 'pipelines/drupal-test.yml'

# 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: kasvatus-koulutus-pipelines
type: git
# Azure DevOps project/repository
name: kasvatus-koulutus/kasvatus-koulutus-pipelines

extends:
# Filename in Azure DevOps Repository
template: components/drupal/pipelines/drupal-staging.yml@kasvatus-koulutus-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 kasvatus-koulutus-pipelines
# The values here will override the values defined in the kasvatus-koulutus-pipelines repository
# buildArgs:
# DEBUG: 1
# configMap: # pod environment variables
# DEBUG: 1
47 changes: 47 additions & 0 deletions pipelines/drupal-test.yml
Original file line number Diff line number Diff line change
@@ -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:
- dev
paths:
exclude:
- '*.md'
- '.github/'
- 'pipelines/drupal-production.yml'
- 'pipelines/drupal-staging.yml'

# 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: kasvatus-koulutus-pipelines
type: git
# Azure DevOps project/repository
name: kasvatus-koulutus/kasvatus-koulutus-pipelines

extends:
# Filename in Azure DevOps Repository
template: components/drupal/pipelines/drupal-test.yml@kasvatus-koulutus-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 kasvatus-koulutus-pipelines
# The values here will override the values defined in the kasvatus-koulutus-pipelines repository
# buildArgs:
# DEBUG: 1
# configMap: # pod environment variables
# DEBUG: 1

0 comments on commit fd603af

Please sign in to comment.