Compare commits

...

6 Commits

Author SHA1 Message Date
irfan 16e2c8fc09 Update env/env.cloud 2025-04-29 10:38:50 +00:00
irfan 65b3dd7cae Update env/env.cloud 2025-04-29 10:04:17 +00:00
shancheas 8f5fff0b91 change env name 2025-04-29 13:15:32 +07:00
Supan Adit Pratama e9152f11f4 chore: add production cloud 2025-04-28 12:34:02 +07:00
Supan Adit Pratama b37dff48e3 Merge branch 'main' of ssh://git.eigen.co.id:2222/eigen/pos-realtime-report
continuous-integration/drone/tag Build is passing Details
2024-10-04 06:03:29 +00:00
Supan Adit Pratama 9628070fcd ci: automation 2024-10-04 06:03:06 +00:00
2 changed files with 37 additions and 0 deletions

View File

@ -20,6 +20,40 @@ steps:
build_args:
- env_target=env.production-online
- release_version=${DRONE_TAG}
- name: kustomize-production
image: registry.k8s.io/kustomize/kustomize:v5.0.0
environment:
DEVOPS_SSH_PRIVATE:
from_secret: DEVOPS_SSH_PRIVATE
DEVOPS_SSH_PUBLIC:
from_secret: DEVOPS_SSH_PUBLIC
commands:
- mkdir -p ~/.ssh &&
- echo $DEVOPS_SSH_PRIVATE | base64 -d > ~/.ssh/id_rsa &&
- echo $DEVOPS_SSH_PUBLIC | base64 -d > ~/.ssh/id_rsa.pub &&
- ssh-keyscan -H -p 2222 git.eigen.co.id >> ~/.ssh/known_hosts &&
- chmod 700 ~/.ssh/ &&
- chmod 600 ~/.ssh/id_rsa &&
- git clone ssh://git@git.eigen.co.id:2222/eigen/k8s-kustomize-external.git &&
- cd k8s-kustomize-external/weplay-pos-production
- kustomize edit set image registry.eigen.co.id/eigen/$DRONE_REPO_NAME-production-online=registry.eigen.co.id/eigen/$DRONE_REPO_NAME-production-online:$DRONE_TAG &&
- kustomize edit set image registry.eigen.co.id/eigen/$DRONE_REPO_NAME-production-offline=registry.eigen.co.id/eigen/$DRONE_REPO_NAME-production-offline:$DRONE_TAG &&
- git add . &&
- |-
git commit -m "feat: update $DRONE_REPO_NAME production to $DRONE_TAG" &&
- git push origin master
- 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/*-production.*

3
env/env.cloud vendored Normal file
View File

@ -0,0 +1,3 @@
VITE_APP_MODE=production
VITE_BASE_API_URL=http://103.187.147.241:30050/api
VITE_BASE_API_REPORT_URL=http://103.187.147.241:30050/api