Update .forgejo/workflows/deploy.yaml
Some checks failed
deploy blog / deploy (push) Failing after 0s
Some checks failed
deploy blog / deploy (push) Failing after 0s
Signed-off-by: xengi <cccb-git@xengi.de>
This commit is contained in:
parent
4c616c95a0
commit
a649617fae
1 changed files with 10 additions and 1 deletions
|
|
@ -32,9 +32,18 @@ jobs:
|
|||
run: ./build.sh
|
||||
|
||||
- name: Setup SSH key
|
||||
if: forgejo.ref_name == 'staging'
|
||||
run: |
|
||||
mkdir -p .ssh
|
||||
echo ${{ secrets.SSH_PRIVATE_KEY }} > .ssh/id_ed25519
|
||||
echo ${{ secrets.SSH_PRIVATE_KEY_STAGING }} > .ssh/id_ed25519
|
||||
|
||||
- name: Setup SSH key
|
||||
if: forgejo.ref_name == 'production'
|
||||
run: |
|
||||
mkdir -p .ssh
|
||||
echo ${{ secrets.SSH_PRIVATE_KEY_PRODUCTION }} > .ssh/id_ed25519
|
||||
|
||||
- name: Check SSH key
|
||||
chmod 600 .ssh/id_ed25519
|
||||
ssh-keygen -f .ssh/id_ed25519 -y > .ssh/id_ed25519.pub
|
||||
cat .ssh/id_ed25519.pub
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue