Skip to content

fix: uppercase

fix: uppercase #102

Workflow file for this run

name: Build Docker Image
on:
push:
paths:
- 'daikoku/app/**'
- 'daikoku/conf/**'
- 'daikoku/build.sbt'
- 'daikoku/project/**'
- 'daikoku/javascript/src/**'
- 'daikoku/javascript/package.json'
- 'daikoku/javascript/package-lock.json'
- '.github/workflows/build-docker.yml'
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: maif/daikoku
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- uses: sbt/setup-sbt@v1
- uses: coursier/cache-action@v6
- name: Install JS dependencies and build frontend
run: |
cd daikoku/javascript
rm -rf node_modules/
npm ci
npm run build
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Build backend and Docker image
run: |
cd daikoku
sbt -Dsbt.color=always -Dsbt.supershell=false ';clean;compile;dist'
sbt 'docker:publishLocal'
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag and push image
run: |
docker tag maif/daikoku:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
docker tag maif/daikoku:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest