Skip to content

Commit

Permalink
Set default ci tags and non-root writable cache locations
Browse files Browse the repository at this point in the history
  • Loading branch information
cluttrdev committed Dec 4, 2023
1 parent 9c1a4c7 commit 4f39e5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitlab/gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ stages:

default:
image: golang:1.20
tags: [ $GITLAB_CI_DEFAULT_TAGS ]

variables:
GOPATH: ${CI_PROJECT_DIR}/.go
GOCACHE: ${CI_PROJECT_DIR}/.cache/go-build

download:
stage: .pre
Expand All @@ -25,6 +27,8 @@ lint:
cache:
- <<: *cache-defaults
policy: pull
variables:
GOLANGCI_LINT_CACHE: ${CI_PROJECT_DIR}/.cache/golangci-lint
script:
- golangci-lint run ./...
allow_failure: true
Expand Down

0 comments on commit 4f39e5e

Please sign in to comment.