29 lines
732 B
YAML
29 lines
732 B
YAML
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 }}"
|