This commit is contained in:
hanif salafi 2025-12-24 06:51:49 +07:00
commit 5354191e97
1 changed files with 4 additions and 4 deletions

View File

@ -13,14 +13,14 @@ build-prod:
name: docker:25.0.3-cli
services:
- name: docker:25.0.3-dind
command: ["--insecure-registry=103.82.242.92:8900"]
command: ["--insecure-registry=103.31.38.120:8900"]
script:
- docker logout
- echo "Username:$DEPLOY_USERNAME"
- echo "Token:$DEPLOY_TOKEN"
- echo "$DEPLOY_TOKEN" | docker login 103.82.242.92:8900 --username "$DEPLOY_USERNAME" --password-stdin
- docker build --no-cache -t 103.82.242.92:8900/mediahub/new-mediahub-fe:prod .
- docker push 103.82.242.92:8900/mediahub/new-mediahub-fe:prod
- echo "$DEPLOY_TOKEN" | docker login 103.31.38.120:8900 --username "$DEPLOY_USERNAME" --password-stdin
- docker build --no-cache -t 103.31.38.120:8900/mediahub/new-mediahub-fe:prod .
- docker push 103.31.38.120:8900/mediahub/new-mediahub-fe:prod
auto-deploy:
stage: deploy