File tree Expand file tree Collapse file tree 8 files changed +45
-7
lines changed
Expand file tree Collapse file tree 8 files changed +45
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: generic-go-versionbuild
22
33on :
44 workflow_call :
5+ secrets :
6+ GPG_PRIVATE_KEY :
7+ required : true
8+ GPG_PASSPHRASE :
9+ required : true
510 inputs :
611 service :
712 required : true
@@ -165,11 +170,24 @@ jobs:
165170 merge-multiple : true
166171
167172 - name : package with nfpm
173+ env :
174+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
175+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
176+ GPG_KEY_ID : mail@binarycodes.io
168177 run : |
169178 mkdir -p dist
170179 nfpm pkg --packager archlinux --config nfpm.yaml --target dist/
171180 nfpm pkg --packager deb --config nfpm.yaml --target dist/
172181
182+ # sign the package for arch linux
183+ test -n "$GPG_PRIVATE_KEY" || { echo "GPG_PRIVATE_KEY is empty"; exit 1; }
184+ printf '%s' "$GPG_PRIVATE_KEY" | gpg --batch --import
185+ gpg --batch --list-secret-keys --keyid-format LONG
186+
187+ FPR="$(gpg --batch --list-secret-keys --with-colons | awk -F: '$1=="fpr"{print $10; exit}')"
188+
189+ gpg --batch --yes --local-user "$FPR" --pinentry-mode loopback --passphrase "$GPG_PASSPHRASE" --detach-sign dist/*.pkg.tar.zst
190+
173191 - name : upload build artifact
174192 uses : actions/upload-artifact@v4
175193 with :
Original file line number Diff line number Diff line change 2424 with :
2525 service : go-ssh-keysign
2626 artifactVersion : ${{ needs.set-version.outputs.short_sha }}
27+ secrets :
28+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
29+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 55** /node_modules /
66** /* ca_key *
77src /**
8+
9+ # ignore test nfpm packages
10+ dist /**
Original file line number Diff line number Diff line change 11name : ssh-keysign
22arch : amd64
33platform : linux
4- version : 0.0.7
4+ version : 0.0.8
55section : default
66priority : extra
77maintainer : Sujoy Das <me@binarycodes.io>
88description : Generate short lived, oauth verified, SSH certficates on the fly
9+ license : GPL v3.0
10+ homepage : https://github.com/binarycodes/ssh-key-signer
11+
12+ archlinux :
13+ packager : Sujoy Das <me@binarycodes.io>
14+ pkgbase : ssh-keysign
15+
916contents :
1017 - src : ./go-ssh-keysign/bin/ssh-keysign-linux-amd64
11- dst : /usr/local/bin/ssh-keysign
18+ dst : /usr/bin/ssh-keysign
19+ file_info :
20+ mode : 0755
21+ owner : root
22+ group : root
23+
24+ - src : ./LICENSE
25+ dst : /usr/share/licenses/ssh-keysign/LICENSE
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- tagname=" v0.0.7 "
3+ tagname=" v0.0.8 "
44
55git tag -d " $tagname "
66git push --delete origin " $tagname "
Original file line number Diff line number Diff line change 77 <groupId >io.binarycodes.homelab</groupId >
88 <artifactId >ssh-signer-mono</artifactId >
99 <name >SSH KeySigner</name >
10- <version >0.0.7 </version >
10+ <version >0.0.8 </version >
1111
1212 <packaging >pom</packaging >
1313
Original file line number Diff line number Diff line change 55
66 <groupId >io.binarycodes.homelab</groupId >
77 <artifactId >ssh-key-signer-server</artifactId >
8- <version >0.0.7 </version >
8+ <version >0.0.8 </version >
99 <packaging >jar</packaging >
1010
1111 <name >Server - SSH Key Signer</name >
1414 <properties >
1515 <java .version>21</java .version>
1616 <vaadin .version>24.9.2</vaadin .version>
17- <ssh-signer-common-lib .version>0.0.7 </ssh-signer-common-lib .version>
17+ <ssh-signer-common-lib .version>0.0.8 </ssh-signer-common-lib .version>
1818 </properties >
1919
2020 <parent >
Original file line number Diff line number Diff line change 66
77 <groupId >io.binarycodes.homelab</groupId >
88 <artifactId >ssh-signer-common-lib</artifactId >
9- <version >0.0.7 </version >
9+ <version >0.0.8 </version >
1010
1111 <name >Common Library - SSH Key Signer</name >
1212
You can’t perform that action at this time.
0 commit comments