File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 - mage packagecloud:push deb "$CI_JOB_NAME" "$DIST_FLAVOR"
3737 - mage packagecloud:push rpm "$CI_JOB_NAME" "$DIST_FLAVOR"
3838
39+ .release_pulp :
40+ stage : release
41+ dependencies :
42+ - " package-deb"
43+ - " package-rpm"
44+ - " package-helpers"
45+ before_script :
46+ - ./ci/touch_git
47+ - mage pulp:createConfig
48+ script :
49+ - mage pulp:push deb "$CI_JOB_NAME" "$DIST_FLAVOR"
50+ - mage pulp:push rpm "$CI_JOB_NAME" "$DIST_FLAVOR"
51+
3952.release_artifacts :
4053 artifacts :
4154 paths :
@@ -85,6 +98,24 @@ bleeding edge packagecloud:
8598 - sles
8699 - opensuse
87100
101+ unstable pulp :
102+ extends :
103+ - .release_pulp
104+ - .rules:release:bleeding-edge
105+ environment :
106+ name : bleeding_edge/pulp
107+ url : https://pulp.gitlab.com/runner/unstable
108+ parallel :
109+ matrix :
110+ - DIST_FLAVOR :
111+ - debian
112+ - ubuntu
113+ - el
114+ - fedora
115+ - amazon
116+ - sles
117+ - opensuse
118+
88119stable packagecloud :
89120 extends :
90121 - .release_packagecloud
@@ -106,6 +137,27 @@ stable packagecloud:
106137 - sles
107138 - opensuse
108139
140+ stable pulp :
141+ extends :
142+ - .release_pulp
143+ - .rules:release:stable:branch
144+ environment :
145+ name : stable/pulp
146+ url : https://pulp.gitlab.com/runner/gitlab-runner
147+ parallel :
148+ matrix :
149+ - DIST_FLAVOR :
150+ - debian
151+ - ubuntu
152+ - raspbian
153+ - linuxmint
154+ - el
155+ - ol
156+ - fedora
157+ - amazon
158+ - sles
159+ - opensuse
160+
109161# Image Registry Releases
110162# ########################
111163
Original file line number Diff line number Diff line change @@ -29,9 +29,11 @@ func init() {
2929 config .Concurrency = 1
3030 }
3131
32+ level := slog .LevelInfo
3233 if config .Verbose {
33- slog . SetDefault ( slog . New ( slog . NewTextHandler ( os . Stdout , & slog. HandlerOptions { Level : slog .LevelDebug })))
34+ level = slog .LevelDebug
3435 }
36+ slog .SetDefault (slog .New (slog .NewTextHandler (os .Stdout , & slog.HandlerOptions {Level : level })))
3537}
3638
3739// Generate runs go generate for all files in the magefiles directory
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ func Push(opts PushOpts) error {
4848 })
4949
5050 if len (releases ) == 0 {
51- return fmt .Errorf ("no valid releases to push to" )
51+ slog .Info ("No releases to push for package type" , "package-type" , opts .PkgType )
52+ return nil
5253 }
5354
5455 // get the packages to upload...
@@ -58,7 +59,8 @@ func Push(opts PushOpts) error {
5859 }
5960
6061 if len (packages ) == 0 {
61- return fmt .Errorf ("no packages to push" )
62+ slog .Info ("No packages to push" )
63+ return nil
6264 }
6365
6466 // the actual repo name for the stable branch is gitlab-runner
You can’t perform that action at this time.
0 commit comments