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

34 lines
777 B
YAML

stages:
- build
- deploy
build-dev:
stage: build
when: on_success
only:
- main
- dev-restructure
- prod
image: docker:25.0.3-cli
services:
- name: docker:25.0.3-dind
command: ["--insecure-registry=103.82.242.92:8900"]
script:
- docker logout
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 103.82.242.92:8900
- docker build -t 103.82.242.92:8900/humas/web-humas-fe:prod .
- docker push 103.82.242.92:8900/humas/web-humas-fe:prod
auto-deploy:
stage: deploy
when: on_success
only:
- main
- dev-restructure
- dev-main
image: curlimages/curl:latest
services:
- docker:dind
script:
- curl --user admin:$JENKINS_PWD http://38.47.180.165:8080/job/autodeploy-humas/build?token=autodeployhumas