Skip to content

Commit

Permalink
Drone scripts: Trim newlines in GPG keys (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerok authored Aug 24, 2023
1 parent cc1959a commit bd41534
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/drone_publish_tag_enterprise.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ dagger run go run ./cmd rpm \
--destination=${local_dst} \
--gcp-service-account-key-base64=${GCP_KEY_BASE64} \
--sign=true \
--gpg-private-key-base64=$(echo ${GPG_PRIVATE_KEY} | base64 -w 0) \
--gpg-public-key-base64=$(echo ${GPG_PUBLIC_KEY} | base64 -w 0) \
--gpg-private-key-base64=$(echo ${GPG_PRIVATE_KEY} | tr -d '\n') \
--gpg-public-key-base64=$(echo ${GPG_PUBLIC_KEY} | tr -d '\n') \
--gpg-passphrase-base64=$(echo $GPG_PASSPHRASE | base64 -w 0) > rpms.txt

# For Windows we distribute zips and exes
Expand Down
4 changes: 2 additions & 2 deletions scripts/drone_publish_tag_grafana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ dagger run --silent go run ./cmd rpm \
--destination=${local_dst} \
--gcp-service-account-key-base64=${GCP_KEY_BASE64} \
--sign=true \
--gpg-private-key-base64=$(echo ${GPG_PRIVATE_KEY} | base64 -w 0) \
--gpg-public-key-base64=$(echo ${GPG_PUBLIC_KEY} | base64 -w 0) \
--gpg-private-key-base64=$(echo ${GPG_PRIVATE_KEY} | tr -d '\n') \
--gpg-public-key-base64=$(echo ${GPG_PUBLIC_KEY} | tr -d '\n') \
--gpg-passphrase-base64=$(echo ${GPG_PASSPHRASE} | base64 -w 0) > rpms.txt

# For Windows we distribute zips and exes
Expand Down

0 comments on commit bd41534

Please sign in to comment.