ci: fix warning when setting branchName in PR
This commit is contained in:
parent
e639d8ab56
commit
51cbb7cc8e
|
@ -374,8 +374,8 @@ stages:
|
||||||
targetType: 'inline'
|
targetType: 'inline'
|
||||||
script: |
|
script: |
|
||||||
set -x
|
set -x
|
||||||
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")'
|
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")
|
||||||
echo '##vso[task.setvariable variable=branchName]$branchName
|
echo "##vso[task.setvariable variable=branchName]$branchName"
|
||||||
- task: Docker@2
|
- task: Docker@2
|
||||||
inputs:
|
inputs:
|
||||||
containerRegistry: 'dockerhub'
|
containerRegistry: 'dockerhub'
|
||||||
|
|
|
@ -94,12 +94,12 @@ stages:
|
||||||
targetType: 'inline'
|
targetType: 'inline'
|
||||||
script: |
|
script: |
|
||||||
set -x
|
set -x
|
||||||
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")'
|
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")
|
||||||
echo '##vso[task.setvariable variable=branchName]$branchName
|
echo "##vso[task.setvariable variable=branchName]$branchName"
|
||||||
- task: Docker@2
|
- task: Docker@2
|
||||||
inputs:
|
inputs:
|
||||||
containerRegistry: 'dockerhub'
|
containerRegistry: 'dockerhub'
|
||||||
repository: 'beryju/authentik-outpost'
|
repository: 'beryju/authentik-proxy'
|
||||||
command: 'buildAndPush'
|
command: 'buildAndPush'
|
||||||
Dockerfile: 'outpost/proxy.Dockerfile'
|
Dockerfile: 'outpost/proxy.Dockerfile'
|
||||||
buildContext: 'outpost/'
|
buildContext: 'outpost/'
|
||||||
|
|
|
@ -74,8 +74,8 @@ stages:
|
||||||
targetType: 'inline'
|
targetType: 'inline'
|
||||||
script: |
|
script: |
|
||||||
set -x
|
set -x
|
||||||
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")'
|
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")
|
||||||
echo '##vso[task.setvariable variable=branchName]$branchName
|
echo "##vso[task.setvariable variable=branchName]$branchName"
|
||||||
- task: Docker@2
|
- task: Docker@2
|
||||||
inputs:
|
inputs:
|
||||||
containerRegistry: 'dockerhub'
|
containerRegistry: 'dockerhub'
|
||||||
|
|
Reference in New Issue