diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 8df312e..6a53f6d 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -5,6 +5,9 @@ COPY mssql/installSQLtools.sh installSQLtools.sh RUN bash ./installSQLtools.sh \ && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ + echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \ + apt-get update && apt-get install -y google-chrome-stable xvfb # [Optional] Uncomment this section to install additional OS packages. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ # && apt-get -y install --no-install-recommends diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..341ac2f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +stages: # Define the stages of the pipeline. + - build + #- test + - deploy + +install-job: # This job runs in the build stage, which runs first. + stage: build + image: node:24 + script: + - cd Web + - npm install + - npm run build + artifacts: # Artifacts are files that are passed between stages. + paths: + - Web/dist/Web/browser # The 'dist' directory will be available in the next stage. + +deploy-job: # This job runs in the deploy stage. + stage: deploy # It only runs when *both* jobs in the test stage complete successfully. + environment: production + tags: + - deployment + script: + - cp -ir Web/dist/Web/browser/* /var/www/html + - echo "Application successfully deployed." diff --git a/README.md b/README.md index 65ef498..c4f03ec 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Centrum - - +![release](https://gitlab.lesko.me/marek/centrum/-/badges/release.svg) +[![pipeline status](https://gitlab.lesko.me/marek/centrum/badges/main/pipeline.svg)](https://gitlab.lesko.me/marek/centrum/-/commits/main) ## Getting started To make it easy for you to get started with GitLab, here's a list of recommended next steps. diff --git a/Web/core b/Web/core new file mode 100644 index 0000000..43c011b Binary files /dev/null and b/Web/core differ