Added node syntax check, remove tag condition
This commit is contained in:
parent
d357305ecf
commit
edcff9ad23
1 changed files with 13 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
- lint
|
||||||
- build
|
- build
|
||||||
|
|
||||||
run_tests:
|
run_tests:
|
||||||
|
|
@ -15,6 +16,16 @@ run_tests:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == "main"
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
|
|
||||||
|
check_node_syntax:
|
||||||
|
stage: lint
|
||||||
|
image: node:20-alpine
|
||||||
|
before_script:
|
||||||
|
- npm ci
|
||||||
|
script:
|
||||||
|
- npm run type-check
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
|
|
||||||
build_and_push:
|
build_and_push:
|
||||||
stage: build
|
stage: build
|
||||||
image: docker:24.0.7
|
image: docker:24.0.7
|
||||||
|
|
@ -42,6 +53,5 @@ build_and_push:
|
||||||
- docker build -t "$CELERY_IMAGE_NAME" -f ./compose/prod/celery/Dockerfile --no-cache .
|
- docker build -t "$CELERY_IMAGE_NAME" -f ./compose/prod/celery/Dockerfile --no-cache .
|
||||||
- echo "Pushing Celery image ${CELERY_IMAGE_NAME}"
|
- echo "Pushing Celery image ${CELERY_IMAGE_NAME}"
|
||||||
- docker push "$CELERY_IMAGE_NAME"
|
- docker push "$CELERY_IMAGE_NAME"
|
||||||
rules:
|
needs:
|
||||||
- if: $CI_COMMIT_TAG
|
- run_tests
|
||||||
when: always
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue