File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
ARG NODE_TAG="20-alpine3.18"
2
2
FROM node:${NODE_TAG} as Runner
3
3
WORKDIR /usr/src/app
4
- RUN apk add --no-cache bash git curl jq openssh-client gpg
4
+ RUN apk add --no-cache bash git curl jq openssh-client gpg gpg-agent
5
5
RUN yarn global add conventional-changelog-cli conventional-recommended-bump
6
6
COPY release-version.sh /usr/local/bin/release-version
7
7
RUN chmod a+x /usr/local/bin/release-version
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ services:
18
18
GH_RELEASE_DRAFT : " ${GH_RELEASE_DRAFT:-true}"
19
19
GH_RELEASE_PRERELEASE : " ${GH_RELEASE_PRERELEASE:-false}"
20
20
volumes :
21
- - " ~/.gnupg:/root/.gnupg :r"
21
+ - " ~/.gnupg:/root/.gnupg_host :r"
22
22
- " ./.git:/usr/src/app/.git:rw"
23
23
- " ./CHANGELOG.md:/usr/src/app/CHANGELOG.md:rw"
24
24
- " ./release-version.sh:/usr/local/bin/release-version:rw"
Original file line number Diff line number Diff line change @@ -185,6 +185,12 @@ $(conventional-changelog | awk 'NR > 1 { print }')
185
185
"
186
186
187
187
if [ " 0" = " $DRY_RUN " ]; then
188
+ # init and run GPG
189
+ mkdir -p /root/.gnupg
190
+ cp -R /root/.gnupg_host/* /root/.gnupg/
191
+ gpg-agent --verbose --daemon --log-file /tmp/gpg-agent.log --allow-preset-passphrase --default-cache-ttl=31536000
192
+
193
+ # commit changes with GPG signature
188
194
git add CHANGELOG.md
189
195
git commit -m " ${COMMIT_MESSAGE} "
190
196
else
You can’t perform that action at this time.
0 commit comments