little update
This commit is contained in:
parent
fdb8fdb4a7
commit
09b2cbae3b
|
|
@ -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
|
||||||
Loading…
Reference in New Issue