Skip to content

Commit

Permalink
base64 encode gpg signing key
Browse files Browse the repository at this point in the history
  • Loading branch information
louismrose committed Mar 18, 2024
1 parent 098ccfd commit d2a20e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ ifndef GPG_PASSPHRASE
endif
@docker compose exec maven mkdir -p /root/.m2
@docker compose exec maven sh -c 'echo "<settings><servers><server><id>central</id><username>$(MVN_CENTRAL_USERNAME)</username><password>$(MVN_CENTRAL_PASSWORD)</password></server></servers></settings>" > /root/.m2/settings.xml'
@docker compose exec maven sh -c 'echo "$(GPG_PRIVATE_KEY)" > /root/api-sdks.asc'
@docker compose exec maven sh -c 'echo -n "$(GPG_PRIVATE_KEY) | base64 --decode" > /root/api-sdks.asc'
@docker compose exec maven gpg --batch --import --pinentry-mode loopback --passphrase "$(GPG_PASSPHRASE)" /root/api-sdks.asc
@$(MVN_CMD) deploy -DskipTests -Dgpg.keyname=api-sdks -Dgpg.passphrase=$(GPG_PASSPHRASE)

0 comments on commit d2a20e6

Please sign in to comment.