Files
homelab/.gitea/workflows/deploy.yml
Alex Frantz 950464db7e
All checks were successful
Deploy Containers / Prepare (push) Successful in 53s
add yes args
2026-01-10 00:36:35 -05:00

37 lines
952 B
YAML

name: Deploy Containers
on:
push:
branches:
- main
jobs:
deploy:
name: Prepare
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Ansible
shell: bash
run: |
apt update -y
apt install software-properties-common -y
add-apt-repository --yes --update ppa:ansible/ansible
apt install ansible -y
- name: Deploy
shell: bash
run: |
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_KEY }}")
echo "HOST *" > ~/.ssh/config
echo "${{ secrets.VAULT_PASS }}" > ~/.vault_pass.txt
python3 ./scripts/deploy_containers.py "${{ github.event.before }}" "${{ github.sha }}"