Skip to content

Commit 31683d6

Browse files
authored
chore: prepare for release of v0.0.8 (#55)
This PR is in preparationg for release of version 0.0.8.
1 parent 76fa0c2 commit 31683d6

File tree

8 files changed

+45
-7
lines changed

8 files changed

+45
-7
lines changed

.github/workflows/go-build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: generic-go-versionbuild
22

33
on:
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:

.github/workflows/go-ssh-keysign-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ jobs:
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 }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
**/node_modules/
66
**/*ca_key*
77
src/**
8+
9+
# ignore test nfpm packages
10+
dist/**

nfpm.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
name: ssh-keysign
22
arch: amd64
33
platform: linux
4-
version: 0.0.7
4+
version: 0.0.8
55
section: default
66
priority: extra
77
maintainer: Sujoy Das <me@binarycodes.io>
88
description: 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+
916
contents:
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

retry-tag-workflow.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
tagname="v0.0.7"
3+
tagname="v0.0.8"
44

55
git tag -d "$tagname"
66
git push --delete origin "$tagname"

server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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

server/ssh-key-signer-server/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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>
@@ -14,7 +14,7 @@
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>

server/ssh-signer-common-lib/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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

0 commit comments

Comments
 (0)