-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines-harrastukset-release.yml
76 lines (71 loc) · 3.13 KB
/
azure-pipelines-harrastukset-release.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
74
75
76
#
# Release pipeline. Run build and deploy for Platta staging and production environments.
#
# 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:
- hobbies-helsinki-*
# 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: harrastukset-pipelines
type: git
# Azure DevOps project/repository
name: harrastukset/harrastukset-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-harrastukset-release.yml@harrastukset-pipelines
parameters:
# Application build arguments and config map values as key value pairs.
# Does not contain all buildArguments, the rest located in harrastukset-pipelines/harrastukset-variables-staging.yml and harrastukset-variables-common.yml
# The values here will override the values defined in the harrastukset-pipelines repository
buildArgs:
FEDERATION_ROUTER_ENDPOINT: https://harrastukset-router.api.hel.fi/
CMS_ORIGIN: https://harrastus.content.api.hel.fi
LINKEDEVENTS_EVENT_ENDPOINT: https://api.hel.fi/linkedevents/v1/event
NEXTJS_DISABLE_SENTRY: 0
NEXT_PUBLIC_ALLOW_UNAUTHORIZED_REQUESTS: 0
NEXT_PUBLIC_DEBUG: 0
NEXT_PUBLIC_MATOMO_ENABLED: 1
SKIP_BUILD_STATIC_GENERATION: 1
buildArgsStage:
FEDERATION_ROUTER_ENDPOINT: https://events-graphql-federation-hobbies.stage.hel.ninja/
CMS_ORIGIN: https://harrastus.content.api.hel.fi
LINKEDEVENTS_EVENT_ENDPOINT: https://api.hel.fi/linkedevents/v1/event
NEXTJS_DISABLE_SENTRY: 0
NEXT_PUBLIC_ALLOW_UNAUTHORIZED_REQUESTS: 0
NEXT_PUBLIC_DEBUG: 0
NEXT_PUBLIC_MATOMO_ENABLED: 1
SKIP_BUILD_STATIC_GENERATION: 1
# NOTE! runtime variables (configMap) do not work in the application !!!
configMap: # pod environment variables for production
FEDERATION_ROUTER_ENDPOINT: https://harrastukset-router.api.hel.fi/
CMS_ORIGIN: https://harrastus.content.api.hel.fi
LINKEDEVENTS_EVENT_ENDPOINT: https://api.hel.fi/linkedevents/v1/event
configMapStage: # pod environment variables for staging
FEDERATION_ROUTER_ENDPOINT: https://events-graphql-federation-hobbies.stage.hel.ninja/
CMS_ORIGIN: https://harrastus.content.api.hel.fi
LINKEDEVENTS_EVENT_ENDPOINT: https://api.hel.fi/linkedevents/v1/event