Skip to content

Commit

Permalink
preset go path in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrisLee committed Sep 6, 2024
1 parent a45af09 commit 154024b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .pipelines/onebranch/templates/template-buildrp-buildaro.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
steps:
- task: Bash@3
displayName: Add GOBIN to PATH
inputs:
targetType: inline
script: |
export GOPATH=$(Agent.TempDirectory)
echo "##vso[task.prependpath]$(go env GOPATH)/bin"
workingDirectory: $(Build.SourcesDirectory)
- task: Bash@3
displayName: ⚙️ Make ARO
inputs:
targetType: inline
script: |
export GOPATH=$(Agent.TempDirectory)
echo "##vso[task.prependpath]$(Agent.TempDirectory)/bin"
export TAG=$(git describe --exact-match 2>/dev/null)
export COMMIT=$(git rev-parse --short=7 HEAD)$([[ $(git status --porcelain) = "" ]] || echo -dirty)
if [ -z "$TAG" ];
Expand Down

0 comments on commit 154024b

Please sign in to comment.