The script parses through bash so, environment variables or shell snippets will get parsed.
curl ci-cd.net/v1/git/echo | bash -s git@github.com:user/repo.git templates/my-template-file > template-output.txt
# | Role | Default | Optionality |
---|---|---|---|
1 | repository | none | Mandatory |
2 | remote file | none | Mandatory |
Template file
[default]
aws_access_key_id = ${AWS_SECRET}
aws_secret_access_key = ${AWS_SECRET}
CI script
- mkdir -p ~/.aws
- curl ci-cd.net/v1/git/echo | sh -s [email protected]:user/repo.git templates/aws_cred > ~/.aws/credentials