feature automated deployment now working! [deploy]
in order to get it working make sure [deploy] is inside the commit title
This commit is contained in:
parent
8b992b53d8
commit
33934f8eee
2 changed files with 6 additions and 5 deletions
1
$PWD.pub
Normal file
1
$PWD.pub
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINwJF0BNEY0CgA5kkZrzpv+sahs40anFO+JKTfFJIgqU sky@lappy
|
||||||
|
|
@ -9,15 +9,15 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: nix
|
runs-on: nix
|
||||||
needs: check
|
needs: check
|
||||||
if: contains(github.event.head_commit.message, 'deploy:')
|
if: contains(github.event.head_commit.message, '[deploy]')
|
||||||
steps:
|
steps:
|
||||||
- uses: https://code.forgejo.org/actions/checkout@v3
|
- uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- run: nix develop
|
|
||||||
- name: Setup SSH key
|
- name: Setup SSH key
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "$SSHKEY" > ~/.ssh/id_rsa
|
echo "$SSHKEY" > ./id_ed25519
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ./id_ed25519
|
||||||
|
|
||||||
env:
|
env:
|
||||||
SSHKEY: ${{ secrets.SSHKEY }}
|
SSHKEY: ${{ secrets.SSHKEY }}
|
||||||
- run: deploy
|
- run: nix develop .#default -c deploy --skip-checks --ssh-user root --ssh-opts '-i ./id_ed25519 -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/dev/null'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue