Publishing images #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: dashboard | |
run-name: Publishing images | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "dashboard" | |
paths: | |
- .github/workflows/dashboard.yml | |
- server/** | |
- dashboard-new/** | |
- docker/standalone/** | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
lh-server: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "corretto" | |
java-version: 17 | |
- name: Tests and Build | |
run: ./gradlew server:build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: server-jar | |
path: server/build/libs/server-*-all.jar | |
lh-dashboard-next: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Build and Publish | |
uses: ./.github/actions/publish-image | |
with: | |
image-name: lh-dashboard-next | |
dockerfile: dashboard-new/Dockerfile | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
context: ./dashboard-new | |
lh-standalone: | |
runs-on: ubuntu-latest | |
needs: | |
- lh-server | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
package_json_file: ./dashboard/package.json | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache-dependency-path: dashboard/pnpm-lock.yaml | |
cache: pnpm | |
- name: Build Dashboard | |
working-directory: ./dashboard | |
run: | | |
pnpm install | |
pnpm build | |
- name: Build Dashboard-new | |
working-directory: ./dashboard-new | |
run: | | |
npm ci | |
npm run build | |
- name: Dowload Server Jar artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: server-jar | |
path: server/build/libs/ | |
- name: Build and Publish | |
uses: ./.github/actions/publish-image | |
with: | |
image-name: lh-standalone-next | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
dockerfile: docker/standalone/Dockerfile |