fradrive/azure-pipelines.yaml

47 lines
1.4 KiB
YAML

# SPDX-FileCopyrightText: 2024-2025 Sarah Vaupel <sarah.vaupel@uniworx.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
parameters:
- name: services
type: object
default:
- name: frontend
base:
image: devfra.azurecr.io/de.fraport.build/npm
tag: node-20
# extraBuildOptions: |
# --build-arg NPM_CUSTOM_REGISTRY=https://pkgs.dev.azure.com/fraport/_packaging/packages/npm/registry/
pool: 'Prod Private Agent Pool'
artifacts: |
assets/icons
assets/favicons
static/
well-known/
frontend/src/env.sass
config/manifest.json
- name: backend
base:
image: devfra.azurecr.io/de.fraport.build/haskell
tag: 8.10.4
pool: 'Prod Private Agent Pool DS3'
dependencies: []
artifacts: |
.stack/
.stack-work/
variables:
imageUpstream: devfra.azurecr.io/de.fraport.fradrive.build
onMasterBranch: $[eq(variables['Build.SourceBranch'], 'refs/heads/master')]
onUpdateBranch: $[startsWith(variables['Build.SourceBranch'], 'refs/heads/update')]
pool: 'Prod Private Agent Pool'
jobs:
- ${{ each service in parameters.services }}:
- template: .azure-pipelines/templates/service.yaml
parameters:
serviceName: ${{ service.name }}
serviceBase: ${{ service.base }}
servicePool: ${{ service.pool }}
serviceArtifacts: ${{ service.artifacts }}