Skip to content

Instantly share code, notes, and snippets.

@MattMencel
Created January 9, 2019 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattMencel/0eace06c704c75bf65537e6ce8db8824 to your computer and use it in GitHub Desktop.
Save MattMencel/0eace06c704c75bf65537e6ce8db8824 to your computer and use it in GitHub Desktop.
Publish Terraform Artifact Template
steps:
- script: |
echo "Compressing $(terraform.path) directory..."
tar -czf $(state.key).tar.gz -C $(terraform.path) .
displayName: 'Compress $(terraform.path) Artifact'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: $(state.key).tfplan'
inputs:
PathtoPublish: '$(state.key).tar.gz'
ArtifactName: 'tfplan'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment