This commit is contained in:
@@ -8,7 +8,13 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
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
|
||||
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