File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,15 @@ jobs:
10
10
- uses : actions/setup-go@v2
11
11
with :
12
12
go-version : 1.17
13
- - uses : paultyng/ghaction-import-gpg@v2.1.0
13
+ - run : |
14
+ gpg --import <<< "$TERRAFORM_REGISTRY_GPG_PRIVATE_KEY"
14
15
env:
15
- GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
16
- PASSPHRASE : ${{ secrets.PASSPHRASE }}
17
- id : import_gpg
16
+ TERRAFORM_REGISTRY_GPG_PRIVATE_KEY: ${{ secrets.TERRAFORM_REGISTRY_GPG_PRIVATE_KEY }}
18
17
- uses : goreleaser/goreleaser-action@v2
19
18
with :
20
19
version : latest
21
20
args : release --rm-dist
22
21
env :
23
- GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
24
22
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
23
synchronize :
26
24
# Empyrically equivalent to pressing the "Resync" button in the Settings
46
44
END
47
45
- run : |
48
46
while ! terraform init; do
49
- sleep $((2**++try))
47
+ sleep $((2**++try))
50
48
done
Original file line number Diff line number Diff line change 42
42
# if you are using this is a GitHub action or some other automated pipeline, you
43
43
# need to pass the batch flag to indicate its not interactive.
44
44
- " --batch"
45
- - " --local-user"
46
- - " {{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
47
45
- " --output"
48
46
- " ${signature}"
49
47
- " --detach-sign"
You can’t perform that action at this time.
0 commit comments