From 09b2cbae3bd73eaa99de22b5be6aaa3a0028e2b0 Mon Sep 17 00:00:00 2001 From: Rama Priyanto Date: Wed, 18 Mar 2026 15:43:47 +0700 Subject: [PATCH] little update --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f49ce98 --- /dev/null +++ b/.gitlab-ci.yml @@ -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