Setup dev.exchange.izyim.com

This commit is contained in:
Dillon Ngo
2023-12-16 17:58:28 +08:00
parent d4385b434e
commit 3d8becff1d
4 changed files with 36 additions and 14 deletions
+1
View File
@@ -30,3 +30,4 @@ public
.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/exchange-2.0.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
+27 -13
View File
@@ -2,37 +2,51 @@ id: 53427
name: exchange
separate-vendor: true
environments:
development:
memory: 1024
cli-memory: 512
runtime: 'php-8.2:al2'
build:
- 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev'
- 'php artisan event:cache'
- 'npm ci && npm run prod && rm -rf node_modules'
production:
domain: production.exchange.izyim.com
memory: 1024
cli-memory: 512
database: vapor-laravel-poc-db
database: cief-rds-mysql
storage: exchange-2.0-production
# gateway-version: 2
# cache: vapor-laravel-poc-cache
runtime: 'docker'
runtime: docker
timeout: 180
build:
- 'composer update'
- 'npm install'
- 'npm run dev'
- 'gulp build'
# - 'rm -rf node_modules'
# - 'php artisan optimize'
# # - 'php artisan config:clear'
# - 'php artisan key:generate'
# - 'php artisan config:cache'
# - 'php artisan route:cache'
# - 'php artisan view:cache'
deploy:
- 'php artisan migrate --force'
staging:
domain: staging.exchange.izyim.com
memory: 1024
cli-memory: 512
database: vapor-laravel-poc-db
database: cief-rds-mysql
storage: exchange-2.0-staging
runtime: 'docker'
runtime: docker
timeout: 180
build:
- 'composer update'
- 'npm install'
- 'npm run dev'
- 'gulp build'
deploy:
- 'php artisan migrate --force'
development:
domain: dev.exchange.izyim.com
memory: 1024
cli-memory: 512
database: cief-rds-mysql
storage: exchange-2.0-development
runtime: docker
timeout: 180
build:
- 'composer update'