Skip to content

Customized wizard style(s) #220

Customized wizard style(s)

Customized wizard style(s) #220

Workflow file for this run

# purpose: Continuous Integration (build, test, lint, scan)
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch: {}
concurrency:
group: "ci"
cancel-in-progress: true
env:
app_image: hobbyfarm/admin-ui
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Node.js (LTS)
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup node_modules cache
id: cache-nodemodules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm install
- name: Build
run: npm run build:prod
env:
NODE_OPTIONS: '--openssl-legacy-provider'
# TODO: lint, sonar, tests
- name: Create container image
run: |
docker build -f .github/workflows/Dockerfile-ci -t hobbyfarm/admin-ui:${GIT_COMMIT_SHORT_HASH:-dev} .