Skip to content

Commit

Permalink
build: helsinkilisa pipeline refactor (#3666)
Browse files Browse the repository at this point in the history
* build: pipeline templates by Ansible scripts
* build: remove obsolete pipelines
* fix pipelines intents
  • Loading branch information
terovirtanen authored Feb 5, 2025
1 parent e7a708f commit 4d82c6a
Show file tree
Hide file tree
Showing 16 changed files with 337 additions and 323 deletions.
51 changes: 0 additions & 51 deletions backend/benefit/azure-pipelines-master.yml

This file was deleted.

44 changes: 0 additions & 44 deletions backend/benefit/azure-pipelines-release.yml

This file was deleted.

52 changes: 0 additions & 52 deletions frontend/benefit/azure-pipelines-master.yml

This file was deleted.

44 changes: 0 additions & 44 deletions frontend/benefit/azure-pipelines-release.yml

This file was deleted.

55 changes: 0 additions & 55 deletions frontend/benefit/handler/azure-pipelines-master.yml

This file was deleted.

44 changes: 0 additions & 44 deletions frontend/benefit/handler/azure-pipelines-release.yml

This file was deleted.

50 changes: 50 additions & 0 deletions pipelines/helsinkilisa-api-dev.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
branches:
include:
- main
paths:
include:
- backend/benefit/**
- backend/shared/**
exclude:
- README.md

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

extends:
# Filename in Azure DevOps Repository
template: components/yjdh-helsinkilisa-api/pipelines/yjdh-helsinkilisa-api-dev.yml@yjdh-helsinkilisa-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 yjdh-helsinkilisa-pipelines
# The values here will override the values defined in the yjdh-helsinkilisa-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/helsinkilisa-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:
- benefit-backend-*

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

extends:
# Filename in Azure DevOps Repository
template: components/yjdh-helsinkilisa-api/pipelines/yjdh-helsinkilisa-api-release.yml@yjdh-helsinkilisa-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 yjdh-helsinkilisa-pipelines
# The values here will override the values defined in the yjdh-helsinkilisa-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
Loading

0 comments on commit 4d82c6a

Please sign in to comment.