diff --git a/.forgejo/workflows/build-and-deploy.yml b/.forgejo/workflows/build-and-deploy.yml index e04ff9d..d5fd66a 100644 --- a/.forgejo/workflows/build-and-deploy.yml +++ b/.forgejo/workflows/build-and-deploy.yml @@ -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: