From 35471fc5979a145a2aa8e49d37d8347454b4a1fd Mon Sep 17 00:00:00 2001 From: kris Date: Wed, 14 Jan 2026 02:29:31 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e80a7e02..3a15cfe5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -183,3 +183,31 @@ deploy:staging: environment: name: staging url: https://stg-lti-erp.mbugroup.id + +# ========================================================== +# ====== STAGING (Branch production) ====== +# ========================================================== +build:production: + <<: *build_template + rules: + - if: '$CI_COMMIT_BRANCH == "production"' + environment: + name: staging + variables: + NEXT_PUBLIC_LTI_URL: 'https://lti-erp.mbugroup.id' + NEXT_PUBLIC_SSO_LOGIN_URL: 'https://auth-erp.mbugroup.id' + NEXT_PUBLIC_API_BASE_URL: 'https://api-lti.mbugroup.id/api' + NEXT_PUBLIC_CLIENT_ID: 'Lumbung-Telur-Indonesia' + +deploy:production: + <<: *deploy_template + needs: ['build:production'] + rules: + - if: '$CI_COMMIT_BRANCH == "production"' + variables: + S3_BUCKET: 'lti-erp.mbugroup.id' + AWS_REGION: 'ap-southeast-3' + CLOUDFRONT_DISTRIBUTION_ID: 'E1SSLXKYYITASJ' + environment: + name: staging + url: https://lti-erp.mbugroup.id