feat: update gitlab ci

This commit is contained in:
hanif salafi 2024-11-04 08:00:48 +07:00
parent e520e64fcd
commit f0622be664
1 changed files with 5 additions and 4 deletions

View File

@ -9,12 +9,13 @@ build-dev:
- main
image: docker:stable
services:
- docker:dind
- name: docker:dind
command: ["--insecure-registry=103.82.242.92:8900"]
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
- 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:dev .
- docker push 103.82.242.92:8900/humas/web-humas-fe:dev
auto-deploy:
stage: deploy