chore: prettier format

This commit is contained in:
ValdiANS
2025-11-13 14:25:03 +07:00
parent 138c97a695
commit 6ffb6e1560
2 changed files with 18 additions and 19 deletions
+12 -13
View File
@@ -1,7 +1,7 @@
stages: stages:
- build - build
- deploy - deploy
.build_template: &build_template .build_template: &build_template
stage: build stage: build
image: node:20-alpine image: node:20-alpine
@@ -10,15 +10,15 @@ stages:
paths: paths:
- node_modules/ - node_modules/
variables: variables:
NPM_CONFIG_PRODUCTION: "false" NPM_CONFIG_PRODUCTION: 'false'
NODE_ENV: "" NODE_ENV: ''
script: script:
- echo "Installing dependencies..." - echo "Installing dependencies..."
- npm ci --no-audit --no-fund - npm ci --no-audit --no-fund
- echo "Building Next.js static export..." - echo "Building Next.js static export..."
- npx next build - npx next build
artifacts: artifacts:
name: "out-$CI_COMMIT_SHORT_SHA" name: 'out-$CI_COMMIT_SHORT_SHA'
paths: paths:
- out/ - out/
expire_in: 1 week expire_in: 1 week
@@ -27,7 +27,7 @@ stages:
stage: deploy stage: deploy
image: image:
name: amazon/aws-cli:latest name: amazon/aws-cli:latest
entrypoint: ["/bin/sh", "-c"] entrypoint: ['/bin/sh', '-c']
script: script:
- set -e - set -e
- aws --version - aws --version
@@ -106,22 +106,21 @@ build:dev:
environment: environment:
name: development name: development
variables: variables:
NEXT_PUBLIC_API_BASE_URL: "https://dev-api-lti.mbugroup.id" NEXT_PUBLIC_API_BASE_URL: 'https://dev-api-lti.mbugroup.id'
NEXT_PUBLIC_SSO_LOGIN_URL: "https://dev-api-sso.mbugroup.id" NEXT_PUBLIC_SSO_LOGIN_URL: 'https://dev-api-sso.mbugroup.id'
deploy:dev: deploy:dev:
<<: *deploy_template <<: *deploy_template
needs: ["build:dev"] needs: ['build:dev']
rules: rules:
- if: '$CI_COMMIT_BRANCH == "development"' - if: '$CI_COMMIT_BRANCH == "development"'
variables: variables:
S3_BUCKET: "dev-lti-erp.mbugroup.id" S3_BUCKET: 'dev-lti-erp.mbugroup.id'
AWS_REGION: "ap-southeast-3" AWS_REGION: 'ap-southeast-3'
CLOUDFRONT_DISTRIBUTION_ID: "E1Z8XTA8XF1GIV" CLOUDFRONT_DISTRIBUTION_ID: 'E1Z8XTA8XF1GIV'
environment: environment:
name: development name: development
url: https://dev-lti-erp.mbugroup.id url: https://dev-lti-erp.mbugroup.id
# ====== PRODUCTION ====== # ====== PRODUCTION ======
# build:production: # build:production:
# <<: *build_template # <<: *build_template
@@ -143,5 +142,5 @@ deploy:dev:
# CLOUDFRONT_DISTRIBUTION_ID: "ddfd" # CLOUDFRONT_DISTRIBUTION_ID: "ddfd"
# environment: # environment:
# name: production # name: production
# url: https://royalgoldcapital.com # url: https://royalgoldcapital.com
+6 -6
View File
@@ -1,4 +1,4 @@
version: "3.9" version: '3.9'
services: services:
dev-web-lti: dev-web-lti:
@@ -7,7 +7,7 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- "3002:3000" - '3002:3000'
env_file: env_file:
- .env - .env
environment: environment:
@@ -19,13 +19,13 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: "3.0" cpus: '3.0'
memory: 3G memory: 3G
reservations: reservations:
cpus: "1.0" cpus: '1.0'
memory: 512M memory: 512M
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - 'host.docker.internal:host-gateway'
# Optional: aktifkan healthcheck jika punya endpoint # Optional: aktifkan healthcheck jika punya endpoint
# healthcheck: # healthcheck:
# test: ["CMD-SHELL", "curl -fsS http://localhost:3000/api/healthz || exit 1"] # test: ["CMD-SHELL", "curl -fsS http://localhost:3000/api/healthz || exit 1"]
@@ -36,4 +36,4 @@ services:
networks: networks:
dev-lti-network: dev-lti-network:
external: true external: true