Skip to content

Commit

Permalink
[ci] Fix rules for docker build (#2069)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam authored Apr 24, 2023
1 parent 660d791 commit 9229b25
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ default:
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1

.publish-refs: &publish-refs
.test-only-refs: &test-only-refs
rules:
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs

.publish-refs: &publish-refs
rules:
# won't run on the CI image update pipeline
- if: $CI_PIPELINE_SOURCE == "pipeline"
Expand Down Expand Up @@ -261,7 +265,7 @@ build-nightly:
.build-image: &build-image
<<: *kubernetes-build
image: $BUILDAH_IMAGE
<<: *test-refs
<<: *test-only-refs
variables: &build-image-variables
GIT_STRATEGY: none
DOCKERFILE: ci.Dockerfile
Expand Down

0 comments on commit 9229b25

Please sign in to comment.