Skip to content

Commit

Permalink
build: pipeline templates by Ansible scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
terovirtanen committed Feb 8, 2024
1 parent b4e531d commit b8fccbd
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pipelines/helsinki-profile-ui-dev.yml
Original file line number Diff line number Diff line change
@@ -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:
exclude:
- '*release-please*'
- '*.md'
- '.github/'
- 'pipelines/helsinki-profile-ui-release.yml'
- 'pipelines/helsinki-profile-ui-review.yml'
- 'docker-compose*'

# 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: helsinki-profile-ui-aok
type: git
# Azure DevOps project/repository
name: helsinki-profile-ui/helsinki-profile-ui-aok

extends:
# Filename in Azure DevOps Repository
template: azure-pipelines-helsinki-profile-ui-dev.yml@helsinki-profile-ui-aok
# parameters:
# Application build arguments and config map values as key value pairs.
# Does not contain all buildArguments or configMap values, the rest located in helsinki-profile-ui-aok
# Default value to nodeVersion is set on template.
# The values here will override the values defined in the helsinki-profile-ui-aok repository
# buildArgs:
# DEBUG: 1
# configMap: # pod environment variables
# DEBUG: 1
## Used tool version
# nodeVersion: 18
50 changes: 50 additions & 0 deletions pipelines/helsinki-profile-ui-release.yml
Original file line number Diff line number Diff line change
@@ -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:
- open-city-profile-ui-v*

# 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: helsinki-profile-ui-aok
type: git
# Azure DevOps project/repository
name: helsinki-profile-ui/helsinki-profile-ui-aok

extends:
# Filename in Azure DevOps Repository
template: azure-pipelines-helsinki-profile-ui-release.yml@helsinki-profile-ui-aok
# parameters:
# Application build arguments and config map values as key value pairs.
# Does not contain all buildArguments or configMap values, the rest located in helsinki-profile-ui-aok
# Default value to nodeVersion is set on template.
# The values here will override the values defined in the helsinki-profile-ui-aok repository
## Staging definitions
# buildArgsStage:
# DEBUG: 1
# configMapStage: # pod environment variables
# DEBUG: 1
## Production definitions
# buildArgs:
# DEBUG: 1
# configMap: # pod environment variables
# DEBUG: 1
## Used tool version
# nodeVersion: 18
57 changes: 57 additions & 0 deletions pipelines/helsinki-profile-ui-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#
# Review pipeline. Run build and deploy for Platta dev environments.
# Pipeline runs different tests e.g. unittest and browser tests.
#
# Continuous integration (CI) triggers cause a pipeline to run whenever you push
# an update to the specified branches or you push specified tags.
# only PR trigger pipeline
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:
# PR target branch
branches:
include:
- main
paths:
exclude:
- '*release-please*'
- '*.md'
- '.github/'
- 'pipelines/helsinki-profile-ui-release.yml'
- 'pipelines/helsinki-profile-ui-dev.yml'
- 'docker-compose*'

# By default, use self-hosted agents
pool: Default

resources:
repositories:
# Azure DevOps repository
- repository: helsinki-profile-ui-aok
type: git
# Azure DevOps project/repository
name: helsinki-profile-ui/helsinki-profile-ui-aok

extends:
# Filename in Azure DevOps Repository
template: azure-pipelines-helsinki-profile-ui-review.yml@helsinki-profile-ui-aok
# parameters:
# Application build arguments and config map values as key value pairs.
# Does not contain all buildArguments or configMap values, the rest located in helsinki-profile-ui-aok
# Default value to nodeVersion is set on template.
# The values here will override the values defined in the helsinki-profile-ui-aok repository
# buildArgs:
# DEBUG: 1
# configMap: # pod environment variables
# DEBUG: 1
## Used tool version
# nodeVersion: 18

0 comments on commit b8fccbd

Please sign in to comment.