feat: update gitlab-ci and dockerfile

This commit is contained in:
hanif salafi 2024-03-06 22:20:48 +07:00
parent 70c428a225
commit a93ff472d3
1 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,10 @@
stages: stages:
- build - build-app
- build-image
- deploy - deploy
build-app: build-1:
stage: build stage: build-app
image: golang:alpine image: golang:alpine
script: script:
- go build -o main . - go build -o main .
@ -11,8 +12,8 @@ build-app:
paths: paths:
- main - main
build-image: build-2:
stage: build stage: build-image
image: docker:stable image: docker:stable
services: services:
- docker:dind - docker:dind