Skip to content
Snippets Groups Projects
Commit 678c3ed9 authored by Arie Peterson's avatar Arie Peterson
Browse files

Adapt CI to new frontend directory

parent ff8f3a2a
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ stages:
- package-helm-chart
- release-helm-chart
image: node:14-alpine
image: node:18-alpine
variables:
CHART_NAME: stackspin-dashboard
......@@ -19,6 +19,7 @@ build-project:
stage: build-project
before_script: []
script:
- cd frontend
- echo "Building app"
- yarn install
- echo "REACT_APP_API_URL=/api/v1" > .env
......@@ -30,7 +31,7 @@ build-project:
expire_in: 1 hour
name: web-build
paths:
- web-build
- frontend/web-build
.kaniko-build:
script:
......@@ -39,7 +40,7 @@ build-project:
- export CONTAINER_TAG=${CI_COMMIT_TAG:-${CI_COMMIT_REF_SLUG}}
- /kaniko/executor --cache=true --context ${CI_PROJECT_DIR}/${DIRECTORY} --destination ${CI_REGISTRY_IMAGE}/${KANIKO_BUILD_IMAGENAME}:${CONTAINER_TAG}
build-fontend-container:
build-frontend-container:
stage: build-container
image:
# We need a shell to provide the registry credentials, so we need to use the
......@@ -48,7 +49,7 @@ build-fontend-container:
entrypoint: [""]
variables:
KANIKO_BUILD_IMAGENAME: dashboard
DIRECTORY: web-build
DIRECTORY: frontend/web-build
before_script:
- cp deployment/Dockerfile $DIRECTORY
- cp deployment/nginx.conf $DIRECTORY
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment