Setup dev.portal.izyim.com

This commit is contained in:
Dillon Ngo
2023-12-16 19:57:17 +08:00
parent 826d7288a0
commit ffef6356f9
4 changed files with 24 additions and 1 deletions
+1
View File
@@ -28,3 +28,4 @@ storage/framework/laravel-excel/*
.vapor/
.env.production
.env.staging
.env.development
Vendored
+5 -1
View File
@@ -23,6 +23,7 @@ pipeline {
switch(GIT_BRANCH) {
case "vapor/production":
case "vapor/staging":
case "vapor/development":
git(
url: 'https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git',
credentialsId: 'gitlab-jenkins-localhost',
@@ -65,8 +66,11 @@ pipeline {
case "vapor/staging":
sh "vendor/bin/vapor deploy staging --message='${gitCommitMessage}'"
break
case "vapor/development":
sh "vendor/bin/vapor deploy development --message='${gitCommitMessage}'"
break
case "origin/dillon/34-jenkins-vapor":
sh "vendor/bin/vapor deploy staging --message='${gitCommitMessage}'"
sh "vendor/bin/vapor deploy development --message='${gitCommitMessage}'"
break
}
}
+3
View File
@@ -0,0 +1,3 @@
FROM laravelphp/vapor:php74
COPY . /var/task
+15
View File
@@ -31,3 +31,18 @@ environments:
- 'gulp build'
deploy:
- 'php artisan migrate --force'
development:
domain: dev.portal.izyim.com
memory: 1024
cli-memory: 512
database: vapor-laravel-poc-db
storage: shipping-portal-development
runtime: 'docker'
timeout: 180
build:
- 'composer update'
- 'npm install'
- 'npm run dev'
- 'gulp build'
deploy:
- 'php artisan migrate --force'