CI: Vault variables (#5)

* Streamline publish and deploy w/ variables from local vault

* Publish should wait for build

* Updated Dockerfile to include compiling step within itself

Previously it dependent on /build folder existing in project folder,
this was done by CI pipeline sharing project directory between build and
publish steps. This is no separated and Dockerfile compiles and serves.
This commit is contained in:
2024-02-12 00:28:10 +01:00
committed by Kevin Midboe
parent ab8f42f101
commit ecc197f08c
2 changed files with 79 additions and 26 deletions

View File

@@ -1,6 +1,16 @@
# Build the project
FROM node:lts-iron as builder
ADD . .
RUN yarn
RUN yarn build
# RUN make test
FROM nginx:alpine
WORKDIR /app
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./build .
COPY --from=builder ./build .