From 91273e57eba49a09e3c44a94ca66123103f12758 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Mon, 20 Jan 2025 13:03:49 +0100 Subject: [PATCH] ci(azure-pipelines): parametrize image builds --- azure-pipelines.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index 3cef9df9c..bae95fe6c 100644 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -4,6 +4,10 @@ pool: 'Prod Private Agent Pool' +variables: + FRADRIVE_IMAGE_UPSTREAM: devfra.azurecr.io/de.fraport.fradrive.build + IMAGE_LATEST_RETAG_BRANCH: 'refs/head/master' + jobs: - job: FrontendImage container: @@ -33,7 +37,8 @@ jobs: --build-arg NPM_CUSTOM_REGISTRY=https://pkgs.dev.azure.com/fraport/_packaging/packages/npm/registry/ \ --build-arg MOUNT_DIR=$(Build.Repository.LocalPath) \ --build-arg PROJECT_DIR=/fradrive \ - --tag devfra.azurecr.io/de.fraport.fradrive.build/frontend:$(Build.BuildNumber) \ + --build-arg IN_CI=true \ + --tag ${{FRADRIVE_IMAGE_UPSTREAM}}/frontend:$(Build.BuildNumber) \ . - task: Bash@3 displayName: Push frontend image