forked from MirrorHub/mautrix-whatsapp
Cache modules when building and include example config in artifacts
This commit is contained in:
parent
d59d2c61ee
commit
1474288b82
1 changed files with 6 additions and 0 deletions
|
@ -6,13 +6,19 @@ stages:
|
||||||
build:
|
build:
|
||||||
image: golang:1-alpine
|
image: golang:1-alpine
|
||||||
stage: build
|
stage: build
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .cache
|
||||||
before_script:
|
before_script:
|
||||||
- apk add git build-base
|
- apk add git build-base
|
||||||
|
- mkdir -p .cache
|
||||||
|
- export GOPATH="$CI_PROJECT_DIR/.cache"
|
||||||
script:
|
script:
|
||||||
- go build -o mautrix-whatsapp
|
- go build -o mautrix-whatsapp
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- mautrix-whatsapp
|
- mautrix-whatsapp
|
||||||
|
- example-config.yaml
|
||||||
|
|
||||||
build docker:
|
build docker:
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
|
|
Loading…
Reference in a new issue