web-humas-fe/.gitlab-ci.yml

31 lines
707 B
YAML

stages:
- build
- deploy
build-dev:
stage: build
when: on_success
only:
- dev-main
- dev-restructure
image: docker:stable
services:
- docker:dind
script:
- docker logout
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN registry.gitlab.com
- docker build -t registry.gitlab.com/hanifsalafi/web-humas-polri:dev .
- docker push registry.gitlab.com/hanifsalafi/web-humas-polri:dev
auto-deploy:
stage: deploy
when: on_success
only:
- dev-main
- dev-restructure
image: curlimages/curl:latest
services:
- docker:dind
script:
- curl --user cekmedsos:$JENKINS_PWD http://103.82.242.92:8080/job/autodeploy-humas/build?token=autodeployhumas