@@ -151,6 +151,18 @@ let publish
151151
152152 let indexedAdditionalTags = Prelude.List. indexed Text additional_tags
153153
154+ let architectures =
155+ join
156+ " ,"
157+ ( List / map
158+ Architecture. Type
159+ Text
160+ ( \ (architecture : Architecture. Type )
161+ -> Architecture. lowerName architecture
162+ )
163+ spec. architectures
164+ )
165+
154166 let signedArg =
155167 if DebianRepo. isSigned spec. debian_repo
156168
@@ -159,69 +171,60 @@ let publish
159171 else " "
160172
161173 let commands =
162- List / map
163- Architecture. Type
164- (List Cmd. Type )
165- ( \ (architecture : Architecture. Type )
166- -> [ Cmd. runInDocker
167- Cmd. Docker:: {
168- , image = ContainerImages. minaToolchain
169- , extraEnv =
170- [ " AWS_ACCESS_KEY_ID" , " AWS_SECRET_ACCESS_KEY" ]
171- , privileged = True
172- , useRoot = True
173- }
174- ( " git config --global --add safe.directory /workdir && "
175- ++ " . ./buildkite/scripts/export-git-env-vars.sh && "
176- ++ " gpg --import /var/secrets/debian/key.gpg && "
177- ++ " mkdir -p ./cache && "
178- ++ " DEBIAN_CACHE_FOLDER=/workdir/cache ./buildkite/scripts/release/manager.sh publish "
179- ++ " --artifacts ${artifacts} "
180- ++ " --networks ${networks} "
181- ++ " --buildkite-build-id ${spec.build_id} "
182- ++ " --backend ${spec.backend} "
183- ++ " --channel ${DebianChannel.lowerName
184- spec.channel} "
185- ++ " --source-version ${spec.source_version} "
186- ++ " --target-version ${target_version} "
187- ++ " --codenames ${codenames} "
188- ++ " --debian-repo ${DebianRepo.bucket_or_default
189- spec.debian_repo} "
190- ++ " --only-debians "
191- ++ " --arch ${Architecture.lowerName
192- architecture} "
193- ++ " ${keyArg}"
194- )
195- ]
196- # [ Cmd. run
197- ( " . ./buildkite/scripts/export-git-env-vars.sh && "
198- ++ " ./buildkite/scripts/release/manager.sh verify "
199- ++ " --artifacts ${artifacts} "
200- ++ " --networks ${networks} "
201- ++ " --channel ${DebianChannel.lowerName
202- spec.channel} "
203- ++ " --version ${target_version} "
204- ++ " --codenames ${codenames} "
205- ++ " --debian-repo ${DebianRepo.bucket_or_default
206- spec.debian_repo} "
207- ++ " --only-debians "
208- ++ " --arch ${Architecture.lowerName
209- architecture} "
210- ++ " ${signedArg}"
211- )
212- ]
213- )
214- spec. architectures
215-
216- let flatCommands = Prelude.List. concat Cmd. Type commands
174+ [ Cmd. runInDocker
175+ Cmd. Docker:: {
176+ , image = ContainerImages. minaToolchain
177+ , extraEnv =
178+ [ " AWS_ACCESS_KEY_ID" , " AWS_SECRET_ACCESS_KEY" ]
179+ , privileged = True
180+ , useRoot = True
181+ }
182+ ( " git config --global --add safe.directory /workdir && "
183+ ++ " . ./buildkite/scripts/export-git-env-vars.sh && "
184+ ++ " gpg --import /var/secrets/debian/key.gpg && "
185+ ++ " mkdir -p ./cache && "
186+ ++ " DEBIAN_CACHE_FOLDER=/workdir/cache ./buildkite/scripts/release/manager.sh publish "
187+ ++ " --artifacts ${artifacts} "
188+ ++ " --networks ${networks} "
189+ ++ " --buildkite-build-id ${spec.build_id} "
190+ ++ " --backend ${spec.backend} "
191+ ++ " --channel ${DebianChannel.lowerName spec.channel} "
192+ ++ " --source-version ${spec.source_version} "
193+ ++ " --target-version ${target_version} "
194+ ++ " --codenames ${codenames} "
195+ ++ " --debian-repo ${DebianRepo.bucket_or_default
196+ spec.debian_repo} "
197+ ++ " --only-debians "
198+ ++ " --archs ${architectures} "
199+ ++ " --profile ${Profiles.lowerName spec.profile} "
200+ ++ " ${keyArg}"
201+ )
202+ ]
203+ # [ Cmd. run
204+ ( " . ./buildkite/scripts/export-git-env-vars.sh && "
205+ ++ " ./buildkite/scripts/release/manager.sh verify "
206+ ++ " --artifacts ${artifacts} "
207+ ++ " --networks ${networks} "
208+ ++ " --channel ${DebianChannel.lowerName spec.channel} "
209+ ++ " --version ${target_version} "
210+ ++ " --codenames ${codenames} "
211+ ++ " --debian-repo ${DebianRepo.bucket_or_default
212+ spec.debian_repo} "
213+ ++ " --profile ${Profiles.lowerName spec.profile} "
214+ ++ " --only-debians "
215+ ++ " --archs ${architectures} "
216+ ++ " ${signedArg}"
217+ )
218+ ]
217219
218220 in [ Command. build
219221 Command. Config:: {
220- , commands = [ Mina. fixPermissionsCommand ] # flatCommands
222+ , commands = [ Mina. fixPermissionsCommand ] # commands
221223 , label = " Debian Packages Publishing"
222224 , key =
223225 " publish-debians-${DebianChannel.lowerName
224- spec.channel}"
226+ spec.channel}-${Profiles.lowerName
227+ spec.profile}"
225228 , target = Size. Small
226229 , depends_on = spec. depends_on
227230 , if_ = spec. if_
@@ -254,8 +257,9 @@ let publish
254257 , label = " Docker Packages Publishing"
255258 , key =
256259 " publish-dockers-${DebianChannel.lowerName
257- spec.channel}-${Natural/show
258- r.index}"
260+ spec.channel}-${Profiles.lowerName
261+ spec.profile}-${Natural/show
262+ r.index}"
259263 , target = Size. Small
260264 , depends_on = spec. depends_on
261265 , if_ = spec. if_
0 commit comments