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 Sep 25, 2024
1 parent 9f11d58 commit fcf16d9
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pipelines/atv-api-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/atv-api-release.yml'
- 'pipelines/atv-api-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: atv-pipelines
type: git
# Azure DevOps project/repository
name: atv/atv-pipelines

extends:
# Filename in Azure DevOps Repository
template: components/atv-api/pipelines/atv-api-dev.yml@atv-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 atv-pipelines
# The values here will override the values defined in the atv-pipelines repository
# buildArgs:
# DEBUG: 1
# configMap: # pod environment variables
# DEBUG: 1
## Default value to pythonVersion is set on template.
## Used tool version
# pythonVersion: 3.11
49 changes: 49 additions & 0 deletions pipelines/atv-api-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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:
- atv-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: atv-pipelines
type: git
# Azure DevOps project/repository
name: atv/atv-pipelines

extends:
# Filename in Azure DevOps Repository
template: components/atv-api/pipelines/atv-api-release.yml@atv-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 atv-pipelines
# The values here will override the values defined in the atv-pipelines repository
## Staging definitions
# buildArgsStage:
# DEBUG: 1
# configMapStage: # pod environment variables
# DEBUG: 1
## Production definitions
## Production is using staging image
# configMap: # pod environment variables
# DEBUG: 1
## Default value to pythonVersion is set on template.
## Used tool version
# pythonVersion: 3.11
57 changes: 57 additions & 0 deletions pipelines/atv-api-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/atv-api-release.yml'
- 'pipelines/atv-api-dev.yml'
- 'docker-compose*'

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

resources:
repositories:
# Azure DevOps repository
- repository: atv-pipelines
type: git
# Azure DevOps project/repository
name: atv/atv-pipelines

extends:
# Filename in Azure DevOps Repository
template: components/atv-api/pipelines/atv-api-review.yml@atv-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 atv-pipelines
# The values here will override the values defined in the atv-pipelines repository
# buildArgs:
# DEBUG: 1
# configMap: # pod environment variables
# DEBUG: 1
## Default value to pythonVersion is set on template.
## Used tool version
# pythonVersion: 3.11

0 comments on commit fcf16d9

Please sign in to comment.