fix: Deployment SSH keys
Some checks failed
Deploy / Prepare Build (push) Failing after 7s

This commit is contained in:
Matthew McKinnon 2024-10-28 21:46:32 +10:00
parent c2ced899cd
commit a6107a9018

View File

@ -11,17 +11,17 @@ jobs:
runs-on: homelab runs-on: homelab
container: alpine:latest container: alpine:latest
steps: steps:
- name: Install dependencies # - name: Install dependencies
run: | # run: |
apk update # apk update
apk add --no-cache nodejs npm git bash openssh python3 py3-pip py3-passlib # apk add --no-cache nodejs npm git bash openssh python3 py3-pip py3-passlib
python3 -m pip install --user ansible --break-system-packages # python3 -m pip install --user ansible --break-system-packages
export PATH="/root/.local/bin:$PATH" # export PATH="/root/.local/bin:$PATH"
- name: Checkout code # - name: Checkout code
uses: actions/checkout@v4 # uses: actions/checkout@v4
with: # with:
fetch-depth: 0 # fetch-depth: 0
- name: Deploy containers - name: Deploy containers
run: | run: |
@ -34,6 +34,10 @@ jobs:
echo "StrictHostKeyChecking no" >> ~/.ssh/config echo "StrictHostKeyChecking no" >> ~/.ssh/config
echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > ~/.vault_password.txt echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > ~/.vault_password.txt
echo "nameserver 10.10.10.1" > /etc/resolv.conf echo "nameserver 10.10.10.1" > /etc/resolv.conf
./.gitea/workflows/deploy.sh "${{ github.event.before }}" "${{ github.sha }}" ssh -T root@pve2.comprofix.xyz
ssh -T administrator@docker.comprofix.xyz
ssh -T administrator@omada.comprofix.xyz
ssh -T administrator@vps02.comprofix.com
# ./.gitea/workflows/deploy.sh "${{ github.event.before }}" "${{ github.sha }}"