@@ -43,24 +43,20 @@ jobs:
43
43
password : ${{ secrets.DOCKERHUB_PASSWORD }}
44
44
- name : Set up Docker Buildx
45
45
uses : docker/setup-buildx-action@v3
46
- - name : Install Deb build scripts
47
- run : sudo apt-get install devscripts build-essential lintian dput dh-make python3-paramiko
48
- - name : Import GPG key
49
- uses : crazy-max/ghaction-import-gpg@v6
50
- with :
51
- gpg_private_key : ${{ secrets.GPG_SIGNING_KEY }}
52
- -
uses :
webfactory/[email protected]
53
- with :
54
- ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
55
-
56
- - name : Release snapshot
46
+ - name : Setup build environment
57
47
run : |
48
+ sudo apt-get install devscripts build-essential lintian dput dh-make python3-paramiko
49
+ echo -e "${{ secrets.GPG_SIGNING_KEY }}" | gpg --import
58
50
# workaround for expired key until it gets updated
59
51
gpg --quick-set-expire F0AB06E81EEBCED6F69460F12B13D750E4ECCA9D 2025-02-05
52
+ mkdir -p ~/.ssh
53
+ echo -e "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
54
+ chmod 0600 ~/.ssh/id_rsa
60
55
61
- mkdir -p /home/runner/.ssh
56
+ - name : Release snapshot
57
+ run : |
62
58
source env.sh
63
- sudo -E go run mage.go -v ${{ matrix.platform }}
59
+ go run mage.go -v ${{ matrix.platform }}
64
60
65
61
- name : Release Go report
66
62
if : github.ref == 'refs/heads/master'
@@ -97,24 +93,20 @@ jobs:
97
93
password : ${{ secrets.DOCKERHUB_PASSWORD }}
98
94
- name : Set up Docker Buildx
99
95
uses : docker/setup-buildx-action@v3
100
- - name : Install Deb build scripts
101
- run : sudo apt-get install devscripts build-essential lintian dput dh-make python3-paramiko
102
- - name : Import GPG key
103
- uses : crazy-max/ghaction-import-gpg@v6
104
- with :
105
- gpg_private_key : ${{ secrets.GPG_SIGNING_KEY }}
106
- -
uses :
webfactory/[email protected]
107
- with :
108
- ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
109
-
110
- - name : Release tag
96
+ - name : Setup build environment
111
97
run : |
98
+ sudo apt-get install devscripts build-essential lintian dput dh-make python3-paramiko
99
+ echo -e "${{ secrets.GPG_SIGNING_KEY }}" | gpg --import
112
100
# workaround for expired key until it gets updated
113
101
gpg --quick-set-expire F0AB06E81EEBCED6F69460F12B13D750E4ECCA9D 2025-02-05
102
+ mkdir -p ~/.ssh
103
+ echo -e "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
104
+ chmod 0600 ~/.ssh/id_rsa
114
105
115
- mkdir -p /home/runner/.ssh
116
- source build/env.sh
117
- sudo -E go run mage.go -v ${{ matrix.platform }}
106
+ - name : Release tag
107
+ run : |
108
+ source env.sh
109
+ go run mage.go -v ${{ matrix.platform }}
118
110
119
111
post-release :
120
112
runs-on : ubuntu-latest
0 commit comments