Also export user id to otac export #283
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
# 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} . |