Add GitHub Actions workflow for server deployment

This commit is contained in:
Adam C
2026-03-18 23:05:37 +08:00
committed by GitHub
parent 6cc102cfc1
commit 39972af899

28
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Deploy Server
on:
push:
branches: [release]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/wind-explorer/friendolls-server:latest
- name: Trigger homelab deploy
run: |
curl -X POST https://wh.adamcv.com/hooks/friendolls-server-redeploy \
-H "Authorization: Bearer ${{ secrets.DEPLOY_WEBHOOK_SECRET }}"