fixed documentation for armor option (#682)

* fixed documentation for armor option
pull/686/head
srvreeswijk 3 years ago committed by GitHub
parent 79f82164ef
commit 6c3ff18bb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -61,7 +61,7 @@ gpg --gen-key
To export your public key, run:
```shell
gpg --export your.email@address.com --armor > public-key.gpg
gpg --armor --export your.email@address.com > public-key.gpg
```
To import the public key of someone else (to share the secret with them for instance), run:
@ -81,7 +81,7 @@ One way of doing it is the following:
1. [create a gpg key](#using-gpg) for your CI/CD environment. You can chose any name and email address you want: for instance `MyApp CodeShip <myapp@codeship.com>`
if your app is called MyApp and your CI/CD provider is CodeShip. It is easier not to define a password for that key.
2. run `gpg --export-secret-key myapp@codeship.com --armor` to get your private key value
2. run `gpg --armor --export-secret-key myapp@codeship.com` to get your private key value
3. Create an env var on your CI/CD server `GPG_PRIVATE_KEY` and assign it the private key value.
4. Then write your Continuous Deployment build script. For instance:
@ -101,7 +101,7 @@ git secret reveal
Note: your CI/CD might not allow you to create a multiline value. In that case, you can export it on one line with
```shell
gpg --export-secret-key myapp@codeship.com --armor | tr '\n' ','
gpg --armor --export-secret-key myapp@codeship.com | tr '\n' ','
```
You can then create your private key file with:

Loading…
Cancel
Save