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' 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'

View file

@ -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/'

View file

@ -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'