ci: fix warning when setting branchName in PR

This commit is contained in:
Jens Langhammer 2021-02-04 23:15:35 +01:00
parent e639d8ab56
commit 51cbb7cc8e
3 changed files with 7 additions and 7 deletions

View File

@ -374,8 +374,8 @@ stages:
targetType: 'inline'
script: |
set -x
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")'
echo '##vso[task.setvariable variable=branchName]$branchName
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")
echo "##vso[task.setvariable variable=branchName]$branchName"
- task: Docker@2
inputs:
containerRegistry: 'dockerhub'

View File

@ -94,12 +94,12 @@ stages:
targetType: 'inline'
script: |
set -x
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")'
echo '##vso[task.setvariable variable=branchName]$branchName
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")
echo "##vso[task.setvariable variable=branchName]$branchName"
- task: Docker@2
inputs:
containerRegistry: 'dockerhub'
repository: 'beryju/authentik-outpost'
repository: 'beryju/authentik-proxy'
command: 'buildAndPush'
Dockerfile: 'outpost/proxy.Dockerfile'
buildContext: 'outpost/'

View File

@ -74,8 +74,8 @@ stages:
targetType: 'inline'
script: |
set -x
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")'
echo '##vso[task.setvariable variable=branchName]$branchName
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")
echo "##vso[task.setvariable variable=branchName]$branchName"
- task: Docker@2
inputs:
containerRegistry: 'dockerhub'