This commit is contained in:
Marek Lesko
2025-07-10 18:11:35 +00:00
parent c498dcdcaf
commit d2496f6aca
4 changed files with 29 additions and 2 deletions

24
.gitlab-ci.yml Normal file
View File

@@ -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."