Skip to content
Snippets Groups Projects
Commit e81c2cb6 authored by Yusuf Akgül's avatar Yusuf Akgül :hatching_chick:
Browse files

Update .gitlab-ci.yml file

parent f39ff85b
No related branches found
No related tags found
No related merge requests found
Pipeline #37012 passed
...@@ -20,7 +20,7 @@ image: node:20 ...@@ -20,7 +20,7 @@ image: node:20
stages: # List of stages for jobs, and their order of execution stages: # List of stages for jobs, and their order of execution
- build - build
- test - test
# - deploy - deploy
build-job: # This job runs in the build stage, which runs first. build-job: # This job runs in the build stage, which runs first.
stage: build stage: build
...@@ -45,16 +45,17 @@ lint-test-job: # This job also runs in the test stage. ...@@ -45,16 +45,17 @@ lint-test-job: # This job also runs in the test stage.
- sleep 1 - sleep 1
- echo "No lint issues found." - echo "No lint issues found."
#deploy-job: # This job runs in the deploy stage. deploy-job: # This job runs in the deploy stage.
# stage: deploy # It only runs when *both* jobs in the test stage complete successfully. stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
# environment: production environment: production
# only: only:
# - main - main
# script: script:
# - echo "Deploying application..." - echo "Deploying application..."
# - npm install --foreground-scripts # without this= error - npm install --foreground-scripts # without this= error
# - npm install --global vercel - npm install --global vercel
# - vercel pull --yes --environment=production --token=$VERCEL_TOKEN - npx prisma migrate deploy
# - vercel build --prod --token=$VERCEL_TOKEN - vercel pull --yes --environment=production --token=$VERCEL_TOKEN
# - vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN - vercel build --prod --token=$VERCEL_TOKEN
# - echo "Application successfully deployed." - vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
- echo "Application successfully deployed."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment