diff --git a/.drone.yml b/.drone.yml
index 6e375af..6eda51d 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -1,38 +1,35 @@
kind: pipeline
type: docker
-name: build
+name: server
steps:
- - name: build-dev
- image: plugins/docker
+ - name: build
+ image: appleboy/drone-ssh
settings:
- registry: registry.eigen.co.id
- repo: registry.eigen.co.id/eigen/${DRONE_REPO_NAME}
- build_args:
- - env_target=env.development
- tags: latest
- custom_dns: 172.10.10.16
+ host:
+ - 172.10.10.10
+ username: eigen
+ key:
+ from_secret: DEVOPS_SSH_PRIVATE_OPEN
+ port: 22
+ script:
+ - cd /home/eigen/PROJECT/POS/POS.DEV/BE
+ - sh build.sh
+ - name: send-message
+ image: plugins/webhook
+ settings:
+ urls: https://mattermost.eigen.co.id/api/v4/posts
+ content_type: application/json
+ headers:
+ - Authorization=Bearer 5zubexudb38uuradfa36qy98ca
+ template: |
+ {
+ "channel_id": "s1ekqde1c3du5p35g6budnuotc",
+ "message": "Build {{repo.name}} sudah selesai"
+ }
trigger:
ref:
- refs/tags/devel_*
+ - refs/tags/*-alpha.*
event:
exclude:
- promote
----
-kind: pipeline
-type: docker
-name: deployment
-steps:
- - name: deployment
- image: alpine
- failure: ignore
- commands:
- - apk add --no-cache curl
- - curl -X POST https://manager.sky.eigen.co.id/api/webhooks/806de7e2-1d3e-4889-b472-a59af0a5eb33
-trigger:
- ref:
- - refs/tags/devel_*
- event:
- exclude:
- - promote
-depends_on:
- - build
diff --git a/.drone.yml.old b/.drone.yml.old
new file mode 100644
index 0000000..6e375af
--- /dev/null
+++ b/.drone.yml.old
@@ -0,0 +1,38 @@
+kind: pipeline
+type: docker
+name: build
+steps:
+ - name: build-dev
+ image: plugins/docker
+ settings:
+ registry: registry.eigen.co.id
+ repo: registry.eigen.co.id/eigen/${DRONE_REPO_NAME}
+ build_args:
+ - env_target=env.development
+ tags: latest
+ custom_dns: 172.10.10.16
+trigger:
+ ref:
+ - refs/tags/devel_*
+ event:
+ exclude:
+ - promote
+---
+kind: pipeline
+type: docker
+name: deployment
+steps:
+ - name: deployment
+ image: alpine
+ failure: ignore
+ commands:
+ - apk add --no-cache curl
+ - curl -X POST https://manager.sky.eigen.co.id/api/webhooks/806de7e2-1d3e-4889-b472-a59af0a5eb33
+trigger:
+ ref:
+ - refs/tags/devel_*
+ event:
+ exclude:
+ - promote
+depends_on:
+ - build
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..1961d9f
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,20 @@
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "type": "node",
+ "request": "launch",
+ "name": "Debug Nest Framework",
+ "runtimeExecutable": "npm",
+ "runtimeArgs": ["run", "start:debug", "--", "--inspect-brk"],
+ "autoAttachChildProcesses": true,
+ "restart": true,
+ "sourceMaps": true,
+ "stopOnEntry": false,
+ "console": "integratedTerminal"
+ }
+ ]
+}
diff --git a/Dockerfile b/Dockerfile
index 1aa89d7..cb09013 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,5 +9,6 @@ FROM node:18.17-alpine
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
+COPY --from=builder /app/assets ./assets
COPY --from=builder /app/package.json ./package.json
CMD ["node", "--max-old-space-size=8192","--max-http-header-size", "512000", "-r", "dotenv/config", "dist/main"]
\ No newline at end of file
diff --git a/src/modules/configuration/mail/domain/email-template/payment-confirmation-bank.html b/assets/email-template/change-date-information.html
similarity index 84%
rename from src/modules/configuration/mail/domain/email-template/payment-confirmation-bank.html
rename to assets/email-template/change-date-information.html
index daa023e..c3827f5 100644
--- a/src/modules/configuration/mail/domain/email-template/payment-confirmation-bank.html
+++ b/assets/email-template/change-date-information.html
@@ -4,7 +4,7 @@
- Email Ibunda
+ Email Confirmation
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+ Dear,
+ {{customer_name}}
+ {{customer_phone}}
+
+ Thank you fot choosing us! We're absolutelty thrilled and can't wait to embark on this exciting day with you. See you soon for fun times ahead
+
+ Here's a quick recap of your invoice:
+ Booking Date: {{booking_date}}
+ Total Invoice: {{payment_total}}
+
+ Just a friendly reminder that your invoice will expire on {{expire_date}}
+ To keep things running smoothly, please ensure your payment is completed before this data
+
+
+ For your convenience, here is a list of our account details:
+
+
+
+ Once you've made the payment, please kindly email or send the proof of payment so we can proceed with your booking promptly
+ If you have any questions or need assistance, feel free to reach out to our support team at
+ {{phone_cs}}
+
+
+ Best Regrads,
+ WEplayground
+ |
+
+
+ |
+
+
+
+
+ |
+ |
+
+
+
+
+