.gitlab-ci.yml 570 Bytes
Newer Older
Lukas Burgey's avatar
Add CI  
Lukas Burgey committed
1
2
3
stages:
  - lint
  - build
Lukas Burgey's avatar
Lukas Burgey committed
4
  - deploy
Lukas Burgey's avatar
Add CI  
Lukas Burgey committed
5
6

lint:
Lukas Burgey's avatar
Lukas Burgey committed
7
  image: golang:1.12-alpine
Lukas Burgey's avatar
Add CI  
Lukas Burgey committed
8
9
  stage: lint
  script:
Lukas Burgey's avatar
Lukas Burgey committed
10
11
    - apk add --no-cache git make
    - make lint
Lukas Burgey's avatar
Add CI  
Lukas Burgey committed
12
13

build:
Lukas Burgey's avatar
Lukas Burgey committed
14
  image: golang:1.12-alpine
Lukas Burgey's avatar
Add CI  
Lukas Burgey committed
15
16
  stage: build
  script:
Lukas Burgey's avatar
Lukas Burgey committed
17
    - apk add --no-cache git make
Lukas Burgey's avatar
Lukas Burgey committed
18
    - make build-static
Lukas Burgey's avatar
Add CI  
Lukas Burgey committed
19
20
21
  artifacts:
    paths:
      - feudalClient
Lukas Burgey's avatar
Lukas Burgey committed
22

lukas.burgey's avatar
lukas.burgey committed
23
24
25
26

# this needs a volume mounted to the docker runner like so:
# volumes = ["/path/to/binaries:deploy-destination:rw"]

Lukas Burgey's avatar
Lukas Burgey committed
27
deploy-dev:
Lukas Burgey's avatar
Lukas Burgey committed
28
29
30
  stage: deploy
  only:
    - dev
Lukas Burgey's avatar
Lukas Burgey committed
31
32
33
34
  environment:
    name: dev
  dependencies:
    - build
Lukas Burgey's avatar
Lukas Burgey committed
35
  script:
lukas.burgey's avatar
lukas.burgey committed
36
    - ls deployDestination