@@ -28,7 +28,9 @@ jobs:
|
|||||||
- name: Build images
|
- name: Build images
|
||||||
run: |
|
run: |
|
||||||
docker build -t "$REGISTRY/rolac-api:latest" -t "$REGISTRY/rolac-api:${{ github.sha }}" ./API
|
docker build -t "$REGISTRY/rolac-api:latest" -t "$REGISTRY/rolac-api:${{ github.sha }}" ./API
|
||||||
docker build -t "$REGISTRY/rolac-app:latest" -t "$REGISTRY/rolac-app:${{ github.sha }}" ./APP
|
docker build \
|
||||||
|
--build-arg KENDO_UI_LICENSE="${{ secrets.KENDO_UI_LICENSE }}" \
|
||||||
|
-t "$REGISTRY/rolac-app:latest" -t "$REGISTRY/rolac-app:${{ github.sha }}" ./APP
|
||||||
|
|
||||||
- name: Push images
|
- name: Push images
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ WORKDIR /app
|
|||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci --legacy-peer-deps
|
RUN npm ci --legacy-peer-deps
|
||||||
COPY . .
|
COPY . .
|
||||||
|
# Kendo Angular license: passed in as a build-arg (sourced from a Gitea Actions
|
||||||
|
# secret), exposed to `npm run build` as the env var kendo-licensing reads. Not
|
||||||
|
# baked into any image layer beyond this build stage (the runtime stage is nginx).
|
||||||
|
ARG KENDO_UI_LICENSE
|
||||||
|
ENV KENDO_UI_LICENSE=${KENDO_UI_LICENSE}
|
||||||
RUN npm run build # -> dist/client-bridge/browser (production by default)
|
RUN npm run build # -> dist/client-bridge/browser (production by default)
|
||||||
|
|
||||||
# ---- runtime ----
|
# ---- runtime ----
|
||||||
|
|||||||
Reference in New Issue
Block a user