From 1474288b829c7fbc6c89ed53522d36ef5037b542 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 27 Jul 2019 17:15:45 +0300 Subject: [PATCH] Cache modules when building and include example config in artifacts --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e479fb5..79e2486 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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