Skip to content

Commit

Permalink
dry-run patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtrystram committed Feb 17, 2025
1 parent 2035d97 commit 8de05b1
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions jobs/release.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -270,16 +270,17 @@ lock(resource: "release-${params.STREAM}", extra: locks) {
for (repo in repos) {
def tag_args = repo.tags.collect{"--tag=$it"}
def v2s2_arg = repo.v2s2 ? "--v2s2" : ""
shwrap("""
export COSA_SUPERMIN_MEMORY=1024 # this really shouldn't require much RAM
cp \${REGISTRY_SECRET} tmp/push-secret-${metajsonname}
cosa supermin-run /usr/lib/coreos-assembler/cmd-push-container-manifest \
--auth=tmp/push-secret-${metajsonname} \
--repo=${repo.repo} ${tag_args.join(' ')} \
--artifact=${artifact} --metajsonname=${metajsonname} \
--build=${params.VERSION} ${v2s2_arg}
rm tmp/push-secret-${metajsonname}
""")
println "Would push to ${repo.repo} with tags ${tag_args.join(' ')}"
// shwrap("""
// export COSA_SUPERMIN_MEMORY=1024 # this really shouldn't require much RAM
// cp \${REGISTRY_SECRET} tmp/push-secret-${metajsonname}
// cosa supermin-run /usr/lib/coreos-assembler/cmd-push-container-manifest \
// --auth=tmp/push-secret-${metajsonname} \
// --repo=${repo.repo} ${tag_args.join(' ')} \
// --artifact=${artifact} --metajsonname=${metajsonname} \
// --build=${params.VERSION} ${v2s2_arg}
// rm tmp/push-secret-${metajsonname}
// """)
}
}
}]}
Expand Down

0 comments on commit 8de05b1

Please sign in to comment.