Skip to content

Instantly share code, notes, and snippets.

@Otteri
Last active July 27, 2022 06:21
Show Gist options
  • Save Otteri/bff91efb3f8b1db8fe359d861254c3bb to your computer and use it in GitHub Desktop.
Save Otteri/bff91efb3f8b1db8fe359d861254c3bb to your computer and use it in GitHub Desktop.
Azure DevOps Pipeline: load variables from .env file
PYTHON=/home/usr/anaconda3/bin/python
CACHEDIR=~/.cache
- bash: |
sed '/=\</!d;s/=/ /' .env | awk '{print "##vso[task.setvariable variable="$1";issecret=true]"$2}'
displayName: 'Install .env'
@Otteri
Copy link
Author

Otteri commented Jul 27, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment