add deploy workflow
Some checks failed
Deploy Containers / Prepare (push) Has been cancelled

This commit is contained in:
2025-07-29 19:59:50 -04:00
parent f046245080
commit 91cd66debe
5 changed files with 228 additions and 165 deletions

View File

@@ -0,0 +1,26 @@
name: Deploy Containers
on:
push:
branches:
- main
jobs:
deploy:
name: Prepare
runs-on: runner
steps:
- name: Checkout Repo
uses: actions/checkout@4
with:
fetch-depth: 0
- name: Deploy
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
ssh-add <(echo "${{ secrets.SSH_KEY }}")
echo "HOST *" > ~/.ssh/config
echo "${{ secrets.VAULT_PASS }}" > ~/.vault_pass.txt
./.gitea/scripts/deploy_containers.sh "${{ github.event.before }}" "${{ github.sha }}"