Skip to content

Commit

Permalink
jobs/release: move oscontainer to quay.io/fedora/fedora-coreos
Browse files Browse the repository at this point in the history
Also keep old location active for now.

Fixes coreos/fedora-coreos-tracker#1171
  • Loading branch information
dustymabe committed Sep 14, 2022
1 parent 46a5be4 commit 2283289
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions jobs/release.Jenkinsfile
Expand Up @@ -68,8 +68,8 @@ echo "Final podspec: ${pod}"
def pod_label = "cosa-${UUID.randomUUID().toString()}"

// Destination for OCI image push
// TODO: Change this to quay.io/fedora/coreos per https://fedoraproject.org/wiki/Changes/OstreeNativeContainer
def quay_registry = "quay.io/coreos-assembler/fcos"
def quay_registry = "quay.io/fedora/fedora-coreos"
def old_quay_registry = "quay.io/coreos-assembler/fcos"

// Get the list of requested architectures to release
def basearches = params.ARCHES.split() as Set
Expand Down Expand Up @@ -177,15 +177,24 @@ podTemplate(cloud: 'openshift', label: pod_label, yaml: pod) {

stage("Push OSContainer Manifest") {
// Ship a manifest list containing all requested architectures.
withCredentials([file(credentialsId: 'oscontainer-secret', variable: 'OSCONTAINER_SECRET')]) {
withCredentials([file(credentialsId: 'oscontainer-secret', variable: 'REGISTRY_SECRET')]) {
def arch_args = basearches.collect{"--arch ${it}"}.join(" ")
shwrap("""
cosa push-container-manifest --auth=\${OSCONTAINER_SECRET} \
cosa push-container-manifest --auth=\${REGISTRY_SECRET} \
--repo=${quay_registry} --tag=${params.STREAM} \
--artifact=ostree --metajsonname=base-oscontainer \
--build=${params.VERSION} ${arch_args}
""")
}
// For a period of time let's also mirror into the old location too
// Drop this after October 2022
withCredentials([file(credentialsId: 'old-oscontainer-secret', variable: 'REGISTRY_SECRET')]) {
shwrap("""
skopeo copy --all --authfile \$REGISTRY_SECRET \
docker://${quay_registry}:${params.STREAM} \
docker://${old_quay_registry}:${params.STREAM}
""")
}
}

stage('Publish') {
Expand Down

0 comments on commit 2283289

Please sign in to comment.