feat: update gitlab ci
This commit is contained in:
parent
e520e64fcd
commit
f0622be664
|
|
@ -9,12 +9,13 @@ build-dev:
|
||||||
- main
|
- main
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- name: docker:dind
|
||||||
|
command: ["--insecure-registry=103.82.242.92:8900"]
|
||||||
script:
|
script:
|
||||||
- docker logout
|
- docker logout
|
||||||
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN registry.gitlab.com
|
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 103.82.242.92:8900
|
||||||
- docker build -t registry.gitlab.com/hanifsalafi/web-humas-polri:dev .
|
- docker build -t 103.82.242.92:8900/humas/web-humas-fe:dev .
|
||||||
- docker push registry.gitlab.com/hanifsalafi/web-humas-polri:dev
|
- docker push 103.82.242.92:8900/humas/web-humas-fe:dev
|
||||||
|
|
||||||
auto-deploy:
|
auto-deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue