docker builder and test fixes
This commit is contained in:
+25
-2
@@ -1,7 +1,6 @@
|
||||
stages:
|
||||
- Test Stage
|
||||
- Build Stage
|
||||
- Release Stage
|
||||
|
||||
workflow:
|
||||
rules:
|
||||
@@ -40,5 +39,29 @@ workflow:
|
||||
- frontend/node_modules
|
||||
script:
|
||||
- cd frontend
|
||||
- npm ci --prefer-offline
|
||||
- npm ci --prefer-offline
|
||||
- npm test -- run --exclude "**/*.live.test.ts"
|
||||
|
||||
"Build Backend Image":
|
||||
stage: Build Stage
|
||||
image: docker:24.0.5
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
before_script:
|
||||
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||
script:
|
||||
- cd backend
|
||||
- docker build -t $CI_REGISTRY_IMAGE/backend:$CI_COMMIT_TAG .
|
||||
- docker push $CI_REGISTRY_IMAGE/backend:$CI_COMMIT_TAG
|
||||
|
||||
"Build Frontend Image":
|
||||
stage: Build Stage
|
||||
image: docker:24.0.5
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
before_script:
|
||||
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||
script:
|
||||
- cd frontend
|
||||
- docker build -t $CI_REGISTRY_IMAGE/frontend:$CI_COMMIT_TAG .
|
||||
- docker push $CI_REGISTRY_IMAGE/frontend:$CI_COMMIT_TAG
|
||||
|
||||
Reference in New Issue
Block a user