little update

This commit is contained in:
Rama Priyanto 2026-03-18 15:43:47 +07:00
parent fdb8fdb4a7
commit 09b2cbae3b
1 changed files with 29 additions and 0 deletions

29
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,29 @@
stages:
- build
- deploy
build-dev:
stage: build
when: on_success
only:
- main
image: docker:25.0.3-cli
services:
- name: docker:25.0.3-dind
command: ["--insecure-registry=38.47.180.165:3000"]
script:
- docker logout
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 38.47.180.165:3000
- docker build -t 38.47.180.165:3000/humas/silancar:main .
- docker push 38.47.180.165:3000/humas/silancar:main
auto-deploy:
stage: deploy
when: on_success
only:
- main
image: curlimages/curl:latest
services:
- docker:25.0.3-dind
script:
- curl --user admin:$JENKINS_PWD http://38.47.185.86:8080/job/auto-deploy-narasi-ahli/build?token=autodeploynewnarasiahli