Skip to content

Commit 4cedb8d

Browse files
committed
fix: set ssh_key in base64
1 parent 1f7171e commit 4cedb8d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
peersyst/exrp:${{ github.event.inputs.tag }}
4747
${{ fromJSON('["", "peersyst/exrp:latest"]')[github.event.inputs.is_latest_release == 'true'] }}
4848
secrets: |
49-
ssh_key=${{ secrets.SSH_KEY }}
49+
ssh_key_b64=${{ secrets.SSH_KEY_B64 }}
5050
- name: Publish the Release
5151
uses: softprops/action-gh-release@v1
5252
with:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY . .
1010
# Hotfix to allow download of private go module
1111
ENV GOPRIVATE=github.com/cometbft/cometbft-sec-tachyon
1212
RUN mkdir -p ~/.ssh
13-
RUN --mount=type=secret,id=ssh_key,env=SSH_KEY echo $SSH_KEY > ~/.ssh/id_rsa
13+
RUN --mount=type=secret,id=ssh_key_b64 base64 -d -i /run/secrets/ssh_key_b64 > ~/.ssh/id_rsa
1414
RUN chmod 600 ~/.ssh/id_rsa
1515
RUN ssh-keyscan github.com >> ~/.ssh/known_hosts
1616
RUN git config --global url."ssh://git@github.com/cometbft/cometbft-sec-tachyon".insteadOf "https://github.com/cometbft/cometbft-sec-tachyon"

0 commit comments

Comments
 (0)