File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ version: '1.0'
2
2
stages :
3
3
- clone
4
4
- test
5
+ - pakcages
5
6
- release
6
7
steps :
7
8
main_clone :
10
11
type : git-clone
11
12
repo : " ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}"
12
13
revision : " ${{CF_REVISION}}"
13
- git : cf_github
14
+ git : github
14
15
15
16
go_fmt :
16
17
title : ' Formatting'
@@ -23,9 +24,15 @@ steps:
23
24
title : ' Preparing environment variables...'
24
25
stage : release
25
26
image : codefreshio/ci-helpers
27
+ environment :
28
+ - GPG_FINGERPRINT=${{GPG_FINGERPRINT}}
29
+ - SIGNINGKEY=${{SIGNINGKEY}}
26
30
commands :
27
31
- source /get-token/get-gh-token.sh
28
32
- cf_export GITHUB_TOKEN
33
+ - cf_export GPG_FINGERPRINT
34
+ - cf_export SIGNINGKEY
35
+ - cf_export PRIVATE_KEY_PATH
29
36
when :
30
37
condition :
31
38
all :
@@ -35,7 +42,18 @@ steps:
35
42
title : Create release in Github
36
43
image : goreleaser/goreleaser:v0.133
37
44
stage : release
45
+ environment :
46
+ - GPG_FINGERPRINT=${{GPG_FINGERPRINT}}
47
+ - SIGNINGKEY=${{SIGNINGKEY}}
48
+ - PRIVATE_KEY_PATH=${{PRIVATE_KEY_PATH}}
38
49
commands :
50
+ - apk update
51
+ - apk fetch gnupg
52
+ - apk add gnupg
53
+ - wget ${PRIVATE_KEY_PATH} -O /tmp/private.key
54
+ - gpg --import /tmp/private.key
55
+ - git config user.signingkey ${GPG_FINGERPRINT}
56
+ - git clean -fdx
39
57
- goreleaser release --rm-dist
40
58
when :
41
59
condition :
You can’t perform that action at this time.
0 commit comments