Commit d9dec1d1 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Rework CI

parent b83970d1
Pipeline #44901 passed with stages
in 1 minute and 16 seconds
image: golang:1.12-alpine
stages:
- lint
- build
- deploy
before_script:
- apk add --no-cache git make rsync openssh-client
- mkdir -p /go/src/git.scc.kit.edu/feudal /go/src/_/builds
- cp -r $CI_PROJECT_DIR /go/src/git.scc.kit.edu/feudal/feudalClient
- ln -s /go/src/git.scc.kit.edu/feudal /go/src/_/builds/feudalClient
- make dep
lint:
image: golang:1.12-alpine
stage: lint
script:
make lint
- apk add --no-cache git make
- make lint
build:
image: golang:1.12-alpine
stage: build
script:
- apk add --no-cache git make
- make build-static
artifacts:
paths:
- feudalClient
deploy-dev:
image: netroby/alpine-rsync
stage: deploy
only:
- dev
......@@ -43,6 +39,7 @@ deploy-dev:
- ssh $DEV_USER@$DEV_HOST -- systemctl --user restart devClient@0 devClient@1 devClient@2
deploy-master:
image: netroby/alpine-rsync
stage: deploy
only:
- master
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment