validation stage
This commit is contained in:
parent
716e817723
commit
87069388af
1 changed files with 14 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
stages:
|
stages:
|
||||||
|
- validate
|
||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
- post_deploy
|
- post_deploy
|
||||||
|
@ -19,9 +20,21 @@ stages:
|
||||||
- chmod 644 ~/.ssh/known_hosts
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
- echo "SSH setup completed"
|
- echo "SSH setup completed"
|
||||||
|
|
||||||
|
checking:
|
||||||
|
image: node:lts
|
||||||
|
stage: validate
|
||||||
|
only:
|
||||||
|
- main
|
||||||
|
before_script:
|
||||||
|
- npm install
|
||||||
|
script:
|
||||||
|
- echo "Running Astro checks"
|
||||||
|
- npm run astro check
|
||||||
|
|
||||||
build-site:
|
build-site:
|
||||||
image: node:lts
|
image: node:lts
|
||||||
stage: build
|
stage: build
|
||||||
|
when: on_success
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- node_modules/
|
- node_modules/
|
||||||
|
@ -39,6 +52,7 @@ build-site:
|
||||||
|
|
||||||
deploy-site:
|
deploy-site:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
when: on_success
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
before_script:
|
before_script:
|
||||||
|
|
Loading…
Reference in a new issue