Skip to content
Snippets Groups Projects
Unverified Commit dfb175bf authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

fix: use only tag for detached pipelines

parent 046837a3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -6,12 +6,14 @@ This project includes reuseable GitLab-CI jobs for the GitLab Dedicated Project
 
### `golangci_lint`
 
* Stage: `validate`
* Required Environment Variables: `GL_ASDF_GOLANGCI_LINT_VERSION`
* Default Stage: `validate`
 
```yaml
include:
- project: 'gitlab-com/gl-infra/gitlab-dedicated/gitlab-ci-tools'
ref: main
file: 'golangci-lint.yml'
golangci_lint:
variables:
GL_ASDF_GOLANGCI_LINT_VERSION: $GL_ASDF_GOLANGCI_LINT_VERSION
```
Loading
Loading
@@ -5,6 +5,8 @@
# * Runs in the validate stage
 
golangci_lint:
variables:
GL_ASDF_GOLANGCI_LINT_VERSION: GL_ASDF_GOLANGCI_LINT_VERSION_REQUIRED
stage: validate
image:
name: golangci/golangci-lint:v${GL_ASDF_GOLANGCI_LINT_VERSION}-alpine
Loading
Loading
@@ -24,3 +26,7 @@ golangci_lint:
codequality: gl-code-quality-report.json
paths:
- gl-code-quality-report.json
only:
- main
- merge_requests
- tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment