From 8362507bdf330640d6344354b1cacf88ad2faef4 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 13 May 2021 17:49:11 +0200 Subject: [PATCH] outposts: fix GIT_BUILD_HASH not being set correctly Signed-off-by: Jens Langhammer --- outpost/azure-pipelines.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/outpost/azure-pipelines.yml b/outpost/azure-pipelines.yml index 0417353bd..b3c39d43b 100644 --- a/outpost/azure-pipelines.yml +++ b/outpost/azure-pipelines.yml @@ -113,13 +113,21 @@ stages: inputs: containerRegistry: 'beryjuorg-harbor' repository: 'authentik/outpost-proxy' - command: 'buildAndPush' + command: 'build' Dockerfile: 'outpost/proxy.Dockerfile' buildContext: 'outpost/' tags: | gh-$(branchName) gh-$(Build.SourceVersion) arguments: '--build-arg GIT_BUILD_HASH=$(Build.SourceVersion)' + - task: Docker@2 + inputs: + containerRegistry: 'beryjuorg-harbor' + repository: 'authentik/outpost-proxy' + command: 'push' + tags: | + gh-$(branchName) + gh-$(Build.SourceVersion) - job: ldap_build_docker pool: vmImage: 'ubuntu-latest' @@ -141,10 +149,18 @@ stages: inputs: containerRegistry: 'beryjuorg-harbor' repository: 'authentik/outpost-ldap' - command: 'buildAndPush' + command: 'build' Dockerfile: 'outpost/ldap.Dockerfile' buildContext: 'outpost/' tags: | gh-$(branchName) gh-$(Build.SourceVersion) arguments: '--build-arg GIT_BUILD_HASH=$(Build.SourceVersion)' + - task: Docker@2 + inputs: + containerRegistry: 'beryjuorg-harbor' + repository: 'authentik/outpost-ldap' + command: 'push' + tags: | + gh-$(branchName) + gh-$(Build.SourceVersion)