[skip ci] fix ssh key leaked and roll
This commit is contained in:
parent
ede3381d66
commit
527d34a533
2 changed files with 3 additions and 2 deletions
|
|
@ -7,6 +7,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PATH: /run/current-system/sw/bin:/run/wrappers/bin
|
PATH: /run/current-system/sw/bin:/run/wrappers/bin
|
||||||
|
SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rebuild:
|
rebuild:
|
||||||
|
|
@ -15,7 +16,7 @@ jobs:
|
||||||
- name: Setup SSH key
|
- name: Setup SSH key
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./ssh
|
mkdir -p ./ssh
|
||||||
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ./ssh/deploy_key
|
echo "$SSH_KEY" > ./ssh/deploy_key
|
||||||
chmod 600 ./ssh/deploy_key
|
chmod 600 ./ssh/deploy_key
|
||||||
|
|
||||||
- name: Rebuild and switch
|
- name: Rebuild and switch
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ in {
|
||||||
domain = "satr14.my.id"; # root domain for dns, ssl certs, reverse proxy, etc.
|
domain = "satr14.my.id"; # root domain for dns, ssl certs, reverse proxy, etc.
|
||||||
ssh-keys = [
|
ssh-keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIESvQFXoUBafatqnxTd6qk3WEOcfwb3AIWVTstR3lHzX forgejo"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIESvQFXoUBafatqnxTd6qk3WEOcfwb3AIWVTstR3lHzX forgejo"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJtdH1YqRH9xhuHMivezLvj/hpH77yfH3HUCaRboB/hb forgejo-deploy-runner"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC7nkis5iB9qJ0OLi8YO4MX1F/ISmBng/xYdNcupGAJC forgejo-actions"
|
||||||
];
|
];
|
||||||
disks = {
|
disks = {
|
||||||
# gallery = ext4 "/dev/disk/by-uuid/834f51c1-90ee-4601-ba76-ef0419198d67"; # disk for photo gallery
|
# gallery = ext4 "/dev/disk/by-uuid/834f51c1-90ee-4601-ba76-ef0419198d67"; # disk for photo gallery
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue