feat:drone

This commit is contained in:
Rama Priyanto 2026-02-25 21:40:03 +07:00
parent afec24a759
commit 35f33fc5e5
2 changed files with 34 additions and 6 deletions

34
.drone.yml Normal file
View File

@ -0,0 +1,34 @@
kind: pipeline
type: ssh
name: humas-fe-build
server:
host:
from_secret: ssh_host
user:
from_secret: ssh_user
ssh_key:
from_secret: ssh_key
steps:
- name: prepare repo
when:
branch:
- prod
commands:
- rm -rf /opt/build/web-humas-fe
- mkdir -p /opt/build/web-humas-fe
- cd /opt/build
- git clone http://38.47.180.165:3000/humas/web-humas-fe.git
- cd /opt/build/web-humas-fe
- git checkout $DRONE_BRANCH
- name: build image
when:
branch:
- prod
commands:
- docker login 38.47.180.165:3000 -u administrator -p HarborDockerImageRep0
- cd /opt/build/web-humas-fe
- docker build -t 38.47.180.165:3000/humas/web-humas-fe:$DRONE_BRANCH .
- docker push 38.47.180.165:3000/humas/web-humas-fe:$DRONE_BRANCH

6
package-lock.json generated
View File

@ -3360,12 +3360,6 @@
"url": "https://github.com/sponsors/kossnocorp"
}
},
"node_modules/dayjs": {
"version": "1.11.10",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
"integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==",
"peer": true
},
"node_modules/debug": {
"version": "4.3.4",
"license": "MIT",