Remove commented-out build jobs and adjust update_db job to change directory before restoring and building the project #5
This commit is contained in:
@@ -4,33 +4,6 @@ stages: # Define the stages of the pipeline.
|
|||||||
#- test
|
#- test
|
||||||
- release
|
- release
|
||||||
|
|
||||||
# web-build: # 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.
|
|
||||||
# when: on_success
|
|
||||||
# access: all
|
|
||||||
# expire_in: 30 days
|
|
||||||
|
|
||||||
# api-build:
|
|
||||||
# stage: build
|
|
||||||
# image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
||||||
# script:
|
|
||||||
# - cd Api
|
|
||||||
# - dotnet publish Api.csproj --output ./build --runtime linux-x64 --configuration Release --self-contained true
|
|
||||||
# artifacts:
|
|
||||||
# paths:
|
|
||||||
# - Api/build
|
|
||||||
# when: on_success
|
|
||||||
# access: all
|
|
||||||
# expire_in: 30 days
|
|
||||||
|
|
||||||
semantic-release:
|
semantic-release:
|
||||||
image: node:24
|
image: node:24
|
||||||
stage: release
|
stage: release
|
||||||
@@ -80,6 +53,7 @@ update_db:
|
|||||||
stage: release
|
stage: release
|
||||||
needs: ["docker-deploy"]
|
needs: ["docker-deploy"]
|
||||||
script:
|
script:
|
||||||
|
- cd Api
|
||||||
- dotnet restore
|
- dotnet restore
|
||||||
- dotnet build
|
- dotnet build
|
||||||
- dotnet ef database update --project Api/Api.csproj --startup-project Api/Api.csproj
|
- dotnet ef database update --project Api/Api.csproj --startup-project Api/Api.csproj
|
||||||
|
|||||||
Reference in New Issue
Block a user