-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
38 lines (31 loc) · 1003 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
stages:
- validate
- build:bin
- release:artifacts
- release:tags
variables:
# Setup environment
GIT_CLONE_PATH: "${CI_BUILDS_DIR}/project"
GOSPACE_DIR: "${CI_PROJECT_DIR}/.ci/gospace"
ARTIFACT_DIR: "${CI_PROJECT_DIR}/build"
ARTIFACT_CACHE_TIME: 2678400 # in seconds (default: 1 month)
# Go project setup
GO_MODULE_BASE: github.com/GreenVine
GO_PROJECT_NAME: gcp-auth-util
PRODUCT_NAME: gau
# Version for golangci-lint
GOLANGCI_LINT_INSTALL_URL: https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh
GOLANGCI_LINT_VERSION: "1.29.0"
# GCP-specific settings
GCP_METADATA_TOKEN_URL: http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token
include:
- local: .gitlab/ci/common.yml
- local: .gitlab/ci/build.yml
- local: .gitlab/ci/release.yml
default:
image: golang:alpine
cache:
key: ${CI_COMMIT_REF_SLUG} # per branch caching
paths:
- ".ci/gospace/src"
- ".ci/gospace/pkg/mod"