Skip to content

Commit 79b3026

Browse files
GitLab: do not upload artifacts to internal repo if triggered
1 parent 5988fe8 commit 79b3026

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ upload-to-internal:
122122
stage: upload-to-internal
123123
tags: [ docker, x64 ]
124124
except:
125-
- tags # Only publish from branches.
126-
- schedules # Do not publish artifacts from scheduled jobs to save on disk space.
127-
- main # Do not overwrite release artifacts.
125+
- main # Do not upload duplicate release artifacts
126+
- pipelines # Do not upload artifacts if triggered by upstream project to save on disk space
127+
- schedules # Do not upload artifacts from scheduled jobs to save on disk space
128+
- tags # Only upload artifacts from branches
128129
script:
129130
- ./gradlew $GITLAB_REPO_ARGS $VERSION_ARGS publishMavenJavaPublicationToGitLabRepository
130131

0 commit comments

Comments
 (0)