Skip to content

Commit 5f244a3

Browse files
authored
build: refactor pipelines (#414)
* Set review database variables by Ansible scripts * build: remove obsolete pipeline files * build: remove temporaly ref and example parameter from comments * PLATTA-6229
1 parent a015c0c commit 5f244a3

5 files changed

Lines changed: 91 additions & 120 deletions

File tree

azure-pipelines-review.yml

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

azure-pipelines-test.yml

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

pipelines/kultus-admin-ui-dev.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
- master
8+
- main
9+
paths:
10+
exclude:
11+
- '*release-please*'
12+
- '*.md'
13+
- '.github/'
14+
- 'pipelines/kultus-admin-ui-release.yml'
15+
- 'pipelines/kultus-admin-ui-review.yml'
16+
- 'compose*'
17+
18+
# Pull request (PR) triggers cause a pipeline to run whenever a pull request is
19+
# opened with one of the specified target branches, or when updates are made to
20+
# such a pull request.
21+
#
22+
# GitHub creates a new ref when a pull request is created. The ref points to a
23+
# merge commit, which is the merged code between the source and target branches
24+
# of the pull request.
25+
#
26+
# Opt out of pull request validation
27+
pr: none
28+
29+
# By default, use self-hosted agents
30+
pool: Default
31+
32+
resources:
33+
repositories:
34+
# Azure DevOps repository
35+
- repository: kultus-pipelines
36+
type: git
37+
# Azure DevOps project/repository
38+
name: kultus/kultus-pipelines
39+
40+
extends:
41+
# Filename in Azure DevOps Repository
42+
template: components/kultus-admin-ui/pipelines/kultus-admin-ui-dev.yml@kultus-pipelines
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
#
2-
# Release pipeline. Run build and deploy for Platta staging and production environments.
3-
#
41
# Continuous integration (CI) triggers cause a pipeline to run whenever you push
52
# an update to the specified branches or you push specified tags.
63
trigger:
74
batch: true
85
tags:
96
include:
107
- palvelutarjotin-admin-v*
11-
paths:
12-
exclude:
13-
- README.md
148

159
# Pull request (PR) triggers cause a pipeline to run whenever a pull request is
1610
# opened with one of the specified target branches, or when updates are made to
@@ -35,9 +29,5 @@ resources:
3529
name: kultus/kultus-pipelines
3630

3731
extends:
38-
# Filename in Azure DevOps Repository (note possible -ui or -api)
39-
# Django example: azure-pipelines-PROJECTNAME-api-release.yml
40-
# Drupal example: azure-pipelines-drupal-release.yml
41-
template: azure-pipelines-kultus-admin-ui-release.yml@kultus-pipelines
42-
#parameters:
43-
#imagetag: ${{ parameters.imagetag }}
32+
# Filename in Azure DevOps Repository
33+
template: components/kultus-admin-ui/pipelines/kultus-admin-ui-release.yml@kultus-pipelines
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
- master
24+
- main
25+
paths:
26+
exclude:
27+
- '*release-please*'
28+
- '*.md'
29+
- '.github/'
30+
- 'pipelines/kultus-admin-ui-release.yml'
31+
- 'pipelines/kultus-admin-ui-dev.yml'
32+
- 'compose*'
33+
34+
# By default, use self-hosted agents
35+
pool: Default
36+
37+
resources:
38+
repositories:
39+
# Azure DevOps repository
40+
- repository: kultus-pipelines
41+
type: git
42+
# Azure DevOps project/repository
43+
name: kultus/kultus-pipelines
44+
45+
extends:
46+
# Filename in Azure DevOps Repository
47+
template: components/kultus-admin-ui/pipelines/kultus-admin-ui-review.yml@kultus-pipelines

0 commit comments

Comments
 (0)