FIXED CI/CD config #2
This commit is contained in:
@@ -7,7 +7,6 @@ stages: # Define the stages of the pipeline.
|
|||||||
web-build: # This job runs in the build stage, which runs first.
|
web-build: # This job runs in the build stage, which runs first.
|
||||||
stage: build
|
stage: build
|
||||||
image: node:24
|
image: node:24
|
||||||
parallel: 2
|
|
||||||
script:
|
script:
|
||||||
- cd Web
|
- cd Web
|
||||||
- npm install
|
- npm install
|
||||||
@@ -15,11 +14,13 @@ web-build: # This job runs in the build stage, which runs first.
|
|||||||
artifacts: # Artifacts are files that are passed between stages.
|
artifacts: # Artifacts are files that are passed between stages.
|
||||||
paths:
|
paths:
|
||||||
- Web/dist/Web/browser # The 'dist' directory will be available in the next stage.
|
- Web/dist/Web/browser # The 'dist' directory will be available in the next stage.
|
||||||
|
when: on_success
|
||||||
|
access: all
|
||||||
|
expire_in: 30 days
|
||||||
|
|
||||||
api-build:
|
api-build:
|
||||||
stage: build
|
stage: build
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
parallel: 2
|
|
||||||
script:
|
script:
|
||||||
- cd Api
|
- cd Api
|
||||||
- dotnet publish 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
|
||||||
|
|||||||
Reference in New Issue
Block a user