mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
update workflows.
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
name: Build and Publish Client Artifacts
|
||||
|
||||
on: {} # Temporarily disable the trigger to avoid unnecessary builds
|
||||
|
||||
#on:
|
||||
# pull_request: # Change to push when ready to deploy
|
||||
# branches:
|
||||
# - master
|
||||
# paths:
|
||||
# - client/**
|
||||
# - .github/workflows/client_build.yml
|
||||
on:
|
||||
workflow_call:
|
||||
#pull_request: # Change to push when ready to deploy
|
||||
# branches:
|
||||
# - master
|
||||
# paths:
|
||||
# - client/**
|
||||
# - .github/workflows/client_build.yml
|
||||
|
||||
jobs:
|
||||
client_build:
|
||||
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Generate base Dockerfile
|
||||
run: ./docker/main.go -i Dockerfile.tmpl -o Dockerfile
|
||||
run: go run docker/main.go -i Dockerfile.tmpl -o Dockerfile
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
|
||||
@@ -15,36 +15,12 @@ env:
|
||||
|
||||
jobs:
|
||||
build-client:
|
||||
name: Build client artifacts
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
cache: npm
|
||||
cache-dependency-path: client/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ./client
|
||||
run: npm ci
|
||||
|
||||
- name: Build client
|
||||
working-directory: ./client
|
||||
run: npm run build
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: client
|
||||
path: client/dist
|
||||
uses: ./.github/workflows/client_build.yml
|
||||
|
||||
build-base:
|
||||
name: Build base image
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ build-client ]
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
@@ -85,7 +61,7 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Generate base Dockerfile
|
||||
run: ./docker/main.go -i Dockerfile.tmpl -o Dockerfile -client client/dist
|
||||
run: go run docker/main.go -i Dockerfile.tmpl -o Dockerfile -client client/dist
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Generate base Dockerfile
|
||||
run: ./docker/main.go -i Dockerfile.tmpl -o Dockerfile
|
||||
run: go run docker/main.go -i Dockerfile.tmpl -o Dockerfile
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Generate base Dockerfile
|
||||
run: ./docker/main.go -i Dockerfile.tmpl -o Dockerfile
|
||||
run: go run docker/main.go -i Dockerfile.tmpl -o Dockerfile
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
name: Build and Publish Server Artifacts
|
||||
|
||||
on: {} # Temporarily disable the trigger to avoid unnecessary builds
|
||||
|
||||
#on:
|
||||
# pull_request: # Change to push when ready to deploy
|
||||
# branches:
|
||||
# - master
|
||||
# paths:
|
||||
# - server/**
|
||||
# - .github/workflows/server_build.yml
|
||||
on:
|
||||
workflow_call:
|
||||
#pull_request: # Change to push when ready to deploy
|
||||
# branches:
|
||||
# - master
|
||||
# paths:
|
||||
# - server/**
|
||||
# - .github/workflows/server_build.yml
|
||||
|
||||
jobs:
|
||||
server_build:
|
||||
|
||||
Reference in New Issue
Block a user