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 - 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