Skip to content

Commit

Permalink
Add docs for deploy key secret setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jmandel committed Oct 29, 2018
1 parent c5e7b21 commit 12ae73f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vsts-build/fhir-vm-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,15 @@ $ az group deployment create \

```

VSTS also requires environment variables: `deploy_key_encrypted` and `deploy_key_passphrase`.

```
export DEPLOY_KEY_PASSPHRASE=$(openssl rand -hex 256)
export DEPLOY_KEY_ENCRYPTED=$(cat deploy.build.fhir.org | openssl enc -aes-256-cbc -pass pass:$DEPLOY_KEY_PASSPHRASE -base64 -A)
```

Later in VSTS to decrypt:

```
echo $DEPLOY_KEY_ENCRYPTED | openssl enc -aes-256-cbc -d -pass pass:$DEPLOY_KEY_PASSPHRASE -base64 -A > ${BUILD_REPOSITORY_LOCALPATH}/deploy.rsa
```

0 comments on commit 12ae73f

Please sign in to comment.