traefik/.gitlab-ci.yml
baalajimaestro 9654e9cefc
Add git and variables
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
2022-10-23 10:57:07 +05:30

18 lines
592 B
YAML

docker-build:
image: docker:latest
stage: build
services:
- docker:dind
before_script:
- apk add make go git
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin
variables:
GO111MODULE: "on"
GOPATH: "/root/go"
script:
- make clean-webui generate-webui
- go generate
- go build ./cmd/traefik
- cp ~/go/src/github.com/traefik/traefik .
- docker build . -t registry.baalajimaestro.me/baalajimaestro/traefik:latest
- docker push registry.baalajimaestro.me/baalajimaestro/traefik:latest