From f8a426f0e8330be839c23e6943ea247b3072f6a6 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 11 Jan 2021 16:18:44 +0100 Subject: [PATCH] ci: fix docker tag name for dependabot PRs --- azure-pipelines.yml | 6 ++++++ proxy/azure-pipelines.yml | 6 ++++++ web/azure-pipelines.yml | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 076d93691..30b60a95a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -369,6 +369,12 @@ stages: pool: vmImage: 'ubuntu-latest' steps: + - task: Bash@3 + inputs: + targetType: 'inline' + script: | + set -x + echo '##vso[task.setvariable variable=branchName]$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")' - task: Docker@2 inputs: containerRegistry: 'dockerhub' diff --git a/proxy/azure-pipelines.yml b/proxy/azure-pipelines.yml index 700da97e5..8be5212d6 100644 --- a/proxy/azure-pipelines.yml +++ b/proxy/azure-pipelines.yml @@ -88,6 +88,12 @@ stages: buildType: 'current' artifactName: 'swagger_client' path: "proxy/pkg/" + - task: Bash@3 + inputs: + targetType: 'inline' + script: | + set -x + echo '##vso[task.setvariable variable=branchName]$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")' - task: Docker@2 inputs: containerRegistry: 'dockerhub' diff --git a/web/azure-pipelines.yml b/web/azure-pipelines.yml index 564e1aeed..b91173cad 100644 --- a/web/azure-pipelines.yml +++ b/web/azure-pipelines.yml @@ -69,6 +69,12 @@ stages: pool: vmImage: 'ubuntu-latest' steps: + - task: Bash@3 + inputs: + targetType: 'inline' + script: | + set -x + echo '##vso[task.setvariable variable=branchName]$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")' - task: Docker@2 inputs: containerRegistry: 'dockerhub'