added frontend end build stage to ci pipeline

This commit is contained in:
gaz8860 Gary 2023-05-01 00:51:06 +01:00
parent 36470f8264
commit 2a9d3ac361

View File

@ -12,13 +12,20 @@ variables:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
# Define the job for building the Go backend application # Define the job for building the Go backend application
build: backend:
stage: build stage: build
image: golang:1.17.4-alpine3.14 image: golang:1.17.4-alpine3.14
script: script:
- cd src/backend/cmd - cd src/backend/cmd
- go mod download - go mod download
- go build -o app - go build -o app
frontend:
stage: build
image: mcr.microsoft.com/dotnet/sdk:6.0
script:
- cd src/PanoptesFrontend
- dotnet build
# Define the job for running the tests # Define the job for running the tests
test: test: