Files
homelab/.gitea/workflows/deploy-containers.yml
Matthew McKinnon b8c3870c10
Some checks failed
Deploy / Prepare Build (push) Failing after 14s
chore: add python virtual env path
2025-08-31 15:50:28 +10:00

33 lines
970 B
YAML

name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
name: Prepare Build
runs-on: homelab-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Deploy containers
run: |
export PATH="/opt/venv/bin:$PATH"
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
eval $(ssh-agent -s)
ssh-add <(echo "${{ secrets.SSH_PRIVATE_KEY }}")
echo "HOST *" > ~/.ssh/config
echo "StrictHostKeyChecking no" >> ~/.ssh/config
echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > ~/.vault_password.txt
echo "nameserver 10.10.10.1" > /etc/resolv.conf
curl -I https://google.com.com
ansible-galaxy install oefenweb.fail2ban
#./.gitea/workflows/deploy.sh "${{ github.event.before }}" "${{ github.sha }}"