Skip to content

Commit 17c5916

Browse files
authored
build: pipeline refactor (#20)
* build: pipeline templates by Ansible scripts * Remove obsolete pipeline
1 parent 1b2ba47 commit 17c5916

4 files changed

Lines changed: 149 additions & 51 deletions

File tree

azure-pipelines-build-devtest.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

pipelines/helfi-redirector-dev.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Continuous integration (CI) triggers cause a pipeline to run whenever you push
2+
# an update to the specified branches or you push specified tags.
3+
trigger:
4+
batch: true
5+
branches:
6+
include:
7+
- main
8+
paths:
9+
exclude:
10+
- '*release-please*'
11+
- '*.md'
12+
- '.github/'
13+
- 'pipelines/helfi-redirector-release.yml'
14+
- 'pipelines/helfi-redirector-review.yml'
15+
- 'compose*'
16+
17+
# Pull request (PR) triggers cause a pipeline to run whenever a pull request is
18+
# opened with one of the specified target branches, or when updates are made to
19+
# such a pull request.
20+
#
21+
# GitHub creates a new ref when a pull request is created. The ref points to a
22+
# merge commit, which is the merged code between the source and target branches
23+
# of the pull request.
24+
#
25+
# Opt out of pull request validation
26+
pr: none
27+
28+
# By default, use self-hosted agents
29+
pool: Default
30+
31+
resources:
32+
repositories:
33+
# Azure DevOps repository
34+
- repository: helfi-redirector-pipelines
35+
type: git
36+
# Azure DevOps project/repository
37+
name: helfi-redirector/helfi-redirector-pipelines
38+
39+
extends:
40+
# Filename in Azure DevOps Repository
41+
template: components/helfi-redirector/pipelines/helfi-redirector-dev.yml@helfi-redirector-pipelines
42+
# parameters:
43+
# Application build arguments and config map values as key value pairs.
44+
# Does not contain all buildArguments or configMap values, the rest located in helfi-redirector-pipelines
45+
# The values here will override the values defined in the helfi-redirector-pipelines repository
46+
# buildArgs:
47+
# DEBUG: 1
48+
# configMap: # pod environment variables
49+
# DEBUG: 1
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Continuous integration (CI) triggers cause a pipeline to run whenever you push
2+
# an update to the specified branches or you push specified tags.
3+
trigger:
4+
batch: true
5+
tags:
6+
include:
7+
- tirehtoori-v*
8+
9+
# Pull request (PR) triggers cause a pipeline to run whenever a pull request is
10+
# opened with one of the specified target branches, or when updates are made to
11+
# such a pull request.
12+
#
13+
# GitHub creates a new ref when a pull request is created. The ref points to a
14+
# merge commit, which is the merged code between the source and target branches
15+
# of the pull request.
16+
#
17+
# Opt out of pull request validation
18+
pr: none
19+
20+
# By default, use self-hosted agents
21+
pool: Default
22+
23+
resources:
24+
repositories:
25+
# Azure DevOps repository
26+
- repository: helfi-redirector-pipelines
27+
type: git
28+
# Azure DevOps project/repository
29+
name: helfi-redirector/helfi-redirector-pipelines
30+
31+
extends:
32+
# Filename in Azure DevOps Repository
33+
template: components/helfi-redirector/pipelines/helfi-redirector-release.yml@helfi-redirector-pipelines
34+
# parameters:
35+
# Application build arguments and config map values as key value pairs.
36+
# Does not contain all buildArguments or configMap values, the rest located in helfi-redirector-pipelines
37+
# The values here will override the values defined in the helfi-redirector-pipelines repository
38+
## Staging definitions
39+
# buildArgsStage:
40+
# DEBUG: 1
41+
# configMapStage: # pod environment variables
42+
# DEBUG: 1
43+
## Production definitions
44+
## Production is using staging image
45+
# configMap: # pod environment variables
46+
# DEBUG: 1
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#
2+
# Review pipeline. Run build and deploy for Platta dev environments.
3+
# Pipeline runs different tests e.g. unittest and browser tests.
4+
#
5+
# Continuous integration (CI) triggers cause a pipeline to run whenever you push
6+
# an update to the specified branches or you push specified tags.
7+
# only PR trigger pipeline
8+
trigger: none
9+
10+
# Pull request (PR) triggers cause a pipeline to run whenever a pull request is
11+
# opened with one of the specified target branches, or when updates are made to
12+
# such a pull request.
13+
#
14+
# GitHub creates a new ref when a pull request is created. The ref points to a
15+
# merge commit, which is the merged code between the source and target branches
16+
# of the pull request.
17+
#
18+
# Opt out of pull request validation
19+
pr:
20+
# PR target branch
21+
branches:
22+
include:
23+
- main
24+
paths:
25+
exclude:
26+
- '*release-please*'
27+
- '*.md'
28+
- '.github/'
29+
- 'pipelines/helfi-redirector-release.yml'
30+
- 'pipelines/helfi-redirector-dev.yml'
31+
- 'compose*'
32+
33+
# By default, use self-hosted agents
34+
pool: Default
35+
36+
resources:
37+
repositories:
38+
# Azure DevOps repository
39+
- repository: helfi-redirector-pipelines
40+
type: git
41+
# Azure DevOps project/repository
42+
name: helfi-redirector/helfi-redirector-pipelines
43+
44+
extends:
45+
# Filename in Azure DevOps Repository
46+
template: components/helfi-redirector/pipelines/helfi-redirector-review.yml@helfi-redirector-pipelines
47+
# parameters:
48+
# Application build arguments and config map values as key value pairs.
49+
# Does not contain all buildArguments or configMap values, the rest located in helfi-redirector-pipelines
50+
# The values here will override the values defined in the helfi-redirector-pipelines repository
51+
# buildArgs:
52+
# DEBUG: 1
53+
# configMap: # pod environment variables
54+
# DEBUG: 1

0 commit comments

Comments
 (0)