Cache modules when building and include example config in artifacts

This commit is contained in:
Tulir Asokan 2019-07-27 17:15:45 +03:00
parent d59d2c61ee
commit 1474288b82

View file

@ -6,13 +6,19 @@ stages:
build:
image: golang:1-alpine
stage: build
cache:
paths:
- .cache
before_script:
- apk add git build-base
- mkdir -p .cache
- export GOPATH="$CI_PROJECT_DIR/.cache"
script:
- go build -o mautrix-whatsapp
artifacts:
paths:
- mautrix-whatsapp
- example-config.yaml
build docker:
image: docker:stable