From 103548eb7ebd433c590ecb8e239e27b30bdf9b10 Mon Sep 17 00:00:00 2001 From: Marek Lesko Date: Tue, 15 Jul 2025 13:44:51 +0200 Subject: [PATCH 1/5] ADDED .gitignore #2 --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a4d6d9c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vs/ \ No newline at end of file From 2d59e8afd3c43fac10b19a63c88630c2671741dc Mon Sep 17 00:00:00 2001 From: Marek Lesko Date: Tue, 15 Jul 2025 18:17:14 +0000 Subject: [PATCH 2/5] Backmerge from Main to Dev --- .gitlab-ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b6fce1a..c58ce84 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: # Define the stages of the pipeline. #- test - release -install-job: # This job runs in the build stage, which runs first. +web-build: # This job runs in the build stage, which runs first. stage: build image: node:24 script: @@ -15,12 +15,27 @@ install-job: # This job runs in the build stage, which runs first. paths: - Web/dist/Web/browser # The 'dist' directory will be available in the next stage. +api-build: + stage: build + image: mcr.microsoft.com/dotnet/sdk:8.0 + script: + - ls -halt + - cd Api + - dotnet build Api.csproj --output ./build --runtime linux-x64 + artifacts: + paths: + - Api/build + when: on_success + access: all + expire_in: 30 days + semantic-release: image: node:24 stage: release script: - apt update && apt install zip -y - zip -r dist.zip Web/dist/Web/browser + - zip -r api.zip Api/build - npm install --save-dev @semantic-release/gitlab - npx semantic-release --debug only: From 52c2fe3941c21bfb432a4e8c67f71491c9f8cd18 Mon Sep 17 00:00:00 2001 From: Marek Lesko Date: Tue, 15 Jul 2025 18:29:07 +0000 Subject: [PATCH 3/5] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c58ce84..65af4e4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,7 +21,7 @@ api-build: script: - ls -halt - cd Api - - dotnet build Api.csproj --output ./build --runtime linux-x64 + - dotnet build Api.csproj --output ./build --runtime linux-x64 --configuration Release --self-contained true artifacts: paths: - Api/build From ea76886869c782d222f080f76a8fec55218625e5 Mon Sep 17 00:00:00 2001 From: Marek Lesko Date: Tue, 15 Jul 2025 18:29:32 +0000 Subject: [PATCH 4/5] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 65af4e4..6480f94 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,4 +48,5 @@ deploy-job: # This job runs in the deploy stage. - deployment script: - cp -ir Web/dist/Web/browser/* /var/www/html + - cp -ir Api/build/* /var/api - echo "Application successfully deployed." From c773f4d97b25ed2b77138f2ad3ebc115ffce75bb Mon Sep 17 00:00:00 2001 From: Marek Lesko Date: Tue, 15 Jul 2025 18:37:40 +0000 Subject: [PATCH 5/5] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6480f94..814328a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,7 +21,7 @@ api-build: script: - ls -halt - cd Api - - dotnet build Api.csproj --output ./build --runtime linux-x64 --configuration Release --self-contained true + - dotnet publish Api.csproj --output ./build --runtime linux-x64 --configuration Release --self-contained true artifacts: paths: - Api/build