update yml

This commit is contained in:
Anang Yusman 2026-02-19 15:55:56 +08:00
parent d055d84541
commit 7bf3c5577a
2 changed files with 7 additions and 10 deletions

View File

@ -1,20 +1,17 @@
stages:
- build
- deploy
build-dev:
stage: build
when: on_success
only:
- main
image:
name: docker:25.0.3-cli
image: docker:25.0.3-cli
services:
- name: docker:25.0.3-dind
command: ["--insecure-registry=38.47.185.86:8900"]
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
script:
- docker logout
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 38.47.185.86:8900
- docker info
- echo "$DEPLOY_TOKEN" | docker login 38.47.185.86:8900 -u "$DEPLOY_USERNAME" --password-stdin
- docker build -t 38.47.185.86:8900/medols/web-qudo:dev .
- docker push 38.47.185.86:8900/medols/web-qudo:dev

View File

@ -1,5 +1,5 @@
# Menggunakan image Node.js yang lebih ringan
FROM node:23.5.0-alpine
FROM node:20-alpine
# Mengatur port
ENV PORT 3000