This commit is contained in:
@@ -8,7 +8,13 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: apt update && apt install sshpass -y
|
- name: Generate SSH Key
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh/
|
||||||
|
echo ${{ $SSH_PRIVATE_KEY }} > private.key
|
||||||
|
sudo chmod 600 private.key
|
||||||
|
echo ${{ SSH_KNOWN_HOSTS }} > ~/.ssh/known_hosts
|
||||||
|
shell: bash
|
||||||
- name: Update Compose
|
- name: Update Compose
|
||||||
run: |
|
run: |
|
||||||
ssh craisin@minicraisin touch hello
|
ssh craisin@minicraisin cd config && git pull && docker compose up -d --remove-orphans
|
||||||
Reference in New Issue
Block a user