diff --git a/.gitea/workflows/update.yml b/.gitea/workflows/update.yml index 1cf616c..d1ee516 100644 --- a/.gitea/workflows/update.yml +++ b/.gitea/workflows/update.yml @@ -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 \ No newline at end of file + ssh craisin@minicraisin cd config && git pull && docker compose up -d --remove-orphans \ No newline at end of file