changed dockerfiles to be compatible with new protoc
Some checks failed
Deploy to Proxmox LXC / deploy (push) Has been cancelled

This commit is contained in:
2026-06-20 15:47:07 -04:00
parent 1964b8351f
commit 51d28464fa
2 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
name: Deploy to Proxmox LXC
on:
push:
branches:
- main
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Configure SSH key
env:
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }}
run: |
set -euo pipefail
mkdir -p ~/.ssh
chmod 700 ~/.ssh
printf "%s" "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -p "${DEPLOY_PORT:-22}" -H "$DEPLOY_HOST" >> ~/.ssh/known_hosts
- name: Deploy latest main
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }}
run: |
set -euo pipefail
ssh -p "${DEPLOY_PORT:-22}" \
-i ~/.ssh/id_ed25519 \
"$DEPLOY_USER@$DEPLOY_HOST" \
"/usr/local/bin/deploy-go-microservices.sh"