fix: migrate deploy to self-hosted
Some checks failed
Build and Deploy Go App / build (push) Failing after 2m43s
Build and Deploy Go App / deploy (push) Has been skipped

This commit is contained in:
nihonium 2025-10-08 02:30:28 +03:00
parent f69c60c146
commit 94f68bfbbb
Signed by: nihonium
GPG key ID: 0251623741027CFC

View file

@ -8,13 +8,8 @@ on:
jobs:
build:
runs-on: host
runs-on: self-hosted
steps:
- name: Install Node
run: |
apt update
apt-get install -y nodejs
node -v
- name: Checkout code
uses: actions/checkout@v4
@ -25,7 +20,9 @@ jobs:
go build -o nyanimedb .
- name: Build Docker image
run: docker build -t nyanimedb:latest .
run: |
cd modules/server
docker build -t nyanimedb:latest .
- name: Save Docker image artifact
run: docker save nyanimedb:latest -o nyanimedb.tar
@ -37,7 +34,7 @@ jobs:
path: nyanimedb.tar
deploy:
runs-on: host
runs-on: self-hosted
needs: build
if: ${{ github.event.inputs.deploy == 'true' }} # manual deploy trigger
steps: