Not sure how I use environment variables
nothing seems to appear in %ENV_VAR% or ${ENV_VAR}
also how to i crash out when a command fails - the step passes even though final command failed
- name: certificates
when:
branch:
- build-certificates
environment:
PASSPHRASE:
from_secret: certificate-passphrase
EXPORT_PASSPHRASE:
from_secret: certificate-export-passphrase
commands:
- cd c:\users\administrator\documents\certs
- echo "${EXPORT_PASSPHRASE}" > exx
- certutil -delstore my XXX
- certutil -delstore root "XXX"
- certutil -addstore "Root" XXX.crt
- certutil -p "${EXPORT_PASSPHRASE}" -importPFX XXX.pfx