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

Merge branch 'an-remove-use-of-only' into 'main'

ci: remove deprecated only syntax and switch to rules

See merge request gitlab-com/gl-infra/common-ci-tasks!10
parents d2d1209c 27ce26bb
No related branches found
No related tags found
No related merge requests found
Pipeline #13568815 failed
Loading
Loading
@@ -9,7 +9,6 @@ editorconfig_check:
needs: []
script:
- ec
only:
- main
- merge_requests
- tags
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -25,7 +25,7 @@ golangci_lint:
codequality: gl-code-quality-report.json
paths:
- gl-code-quality-report.json
only:
- main
- merge_requests
- tags
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -8,6 +8,9 @@ goreleaser_validate:
name: goreleaser/goreleaser:v${GL_ASDF_GORELEASER_VERSION}
entrypoint: [""]
script: goreleaser check
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 
goreleaser:
stage: release
Loading
Loading
@@ -22,7 +25,7 @@ goreleaser:
 
rules:
# Only run this release job for tags, not every commit
- if: '$CI_COMMIT_TAG != null'
- if: '$CI_COMMIT_TAG'
 
script: |
docker run --rm --privileged \
Loading
Loading
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