/
azure-pipelines-liikunta-test.yml
73 lines (68 loc) · 2.65 KB
/
azure-pipelines-liikunta-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# Test pipeline. Run build and deploy for Platta test 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.
trigger:
batch: true
branches:
include:
- main
paths:
# Note that we want to run the checks for the apps when we merge new changes
# related to the proxies and federation router.
exclude:
- '**/README.md'
- '**/CHANGELOG.md'
- '**/LICENSE'
- '**/.env*'
- '**/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
# Image tag name for Fuse projects
#parameters:
#- name: imagetag
# displayName: Image tag to be built and/or deployed
# type: string
# default: latest
resources:
repositories:
# Azure DevOps repository
- repository: liikunta-pipelines
type: git
# Azure DevOps project/repository
name: liikunta/liikunta-pipelines
extends:
# Filename in Azure DevOps Repository (note possible -ui or -api)
# Django example: azure-pipelines-PROJECTNAME-api-release.yml
# Drupal example: azure-pipelines-drupal-release.yml
template: azure-pipelines-liikunta-test.yml@liikunta-pipelines
parameters:
# Application build arguments and config map values as key value pairs.
# Does not contain all buildArguments, the rest located in liikunta-pipelines/liikunta-variables-testing.yml and liikunta-variables-common.yml
# The values here will override the values defined in the liikunta-pipelines repository
buildArgs:
FEDERATION_ROUTER_ENDPOINT: https://events-graphql-federation-sports.test.hel.ninja/
CMS_ORIGIN: https://liikunta.hkih.stage.geniem.io
LINKEDEVENTS_EVENT_ENDPOINT: https://api.hel.fi/linkedevents/v1/event
NEXTJS_DISABLE_SENTRY: 0
NEXT_PUBLIC_ALLOW_UNAUTHORIZED_REQUESTS: 1
NEXT_PUBLIC_DEBUG: 1
NEXT_PUBLIC_MATOMO_ENABLED: 0
NEXT_PUBLIC_ASKEM_ENABLED: 1
SKIP_BUILD_STATIC_GENERATION: 1
configMap:
FEDERATION_ROUTER_ENDPOINT: https://events-graphql-federation-sports.test.hel.ninja/
CMS_ORIGIN: https://liikunta.hkih.stage.geniem.io
LINKEDEVENTS_EVENT_ENDPOINT: https://api.hel.fi/linkedevents/v1/event