forked from stacksimplify/terraform-on-azure-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
32 lines (28 loc) · 1 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
trigger:
- main
stages:
- stage: Build
displayName: Build Stage
jobs:
- job: Build
displayName: Build Job
pool:
vmImage: 'ubuntu-latest'
steps:
- bash: |
echo "System Default Working Directory: $(System.DefaultWorkingDirectory)"
echo "Build Artifact Staging Directory: $(Build.ArtifactStagingDirectory)"
ls -R $(System.DefaultWorkingDirectory)
- bash: echo Before copying contents in Build Artifact Directory; ls -R $(Build.ArtifactStagingDirectory)
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/terraform-manifests'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
OverWrite: true
- bash: echo After copying to Build Artifact Directory; ls -R $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'terraform-manifests'
publishLocation: 'Container'