stages: - build - deploy build: stage: build image: golang:alpine script: - go build -o main . artifacts: paths: - main deploy: stage: deploy image: docker:stable services: - docker:dind script: - docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN registry.gitlab.com - docker build -t registry.gitlab.com/hanifsalafi/web-humas-be:dev . - docker push registry.gitlab.com/hanifsalafi/web-humas-be:dev