Skip to content

Commit

Permalink
Set Tag variable
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Jan 26, 2020
1 parent 987c0e2 commit bd7b33d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .azure/azure-linux-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
BUILD: style
maxParallel: 4
steps:
- bash: echo "##vso[task.setvariable variable=TAG]${BUILD_SOURCEBRANCH##refs/tags/}"
displayName: Set TAG variable
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
- script: |
printenv
export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root;
mkdir -p ~/.local/bin
curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
Expand Down
3 changes: 3 additions & 0 deletions .azure/azure-osx-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
STACK_YAML: stack.yaml
maxParallel: 2
steps:
- bash: echo "##vso[task.setvariable variable=TAG]${BUILD_SOURCEBRANCH##refs/tags/}"
displayName: Set TAG variable
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
- script: |
brew install gcc
export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root;
Expand Down
3 changes: 3 additions & 0 deletions .azure/azure-windows-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
STACK_YAML: stack.yaml
maxParallel: 2
steps:
- bash: echo "##vso[task.setvariable variable=TAG]${BUILD_SOURCEBRANCH##refs/tags/}"
displayName: Set TAG variable
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
- bash: |
chcp 65001
export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root;
Expand Down

0 comments on commit bd7b33d

Please sign in to comment.