ci: fix warning when setting branchName in PR
This commit is contained in:
parent
e639d8ab56
commit
51cbb7cc8e
|
@ -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'
|
||||
|
|
|
@ -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/'
|
||||
|
|
|
@ -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'
|
||||
|
|
Reference in a new issue