@@ -480,68 +480,86 @@ jobs:
480480 path : /bin/bash
481481 args :
482482 - -ce
483- - tar xvf ../candidate-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/bosh-stemcell-*-warden-boshlite-(@= data.values.stemcell_details.os_name @)*.tgz image
483+ - |
484+ tar xvf ../candidate-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/bosh-stemcell-*-warden-boshlite-(@= data.values.stemcell_details.os_name @)*.tgz image
485+ printf 'FROM scratch\nADD image /\n' > Dockerfile
486+ - task : build-stemcell-oci-image
487+ privileged : true
488+ config :
489+ platform : linux
490+ image_resource :
491+ type : registry-image
492+ source :
493+ repository : concourse/oci-build-task
494+ inputs :
495+ - name : stemcell-image
496+ outputs :
497+ - name : image
498+ params :
499+ CONTEXT : stemcell-image
500+ run :
501+ path : build
484502 - put : github-container-registry-(@= data.values.stemcell_details.os_name @)-stemcell
485503 params :
486- import_file : stemcell- image/image
487- tag_file : candidate-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/.resource/version
488- tag_as_latest : true
489- - put : published-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)
490- params :
491- files :
492- - candidate-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/*.tgz
493- options :
494- author_email : *ci_bot_email
495- author_name : *ci_bot_name
496- message : ' publish (heavy): (@= data.values.stemcell_details.os_name @)/(@= str(data.values.stemcell_details.major_version) @).x'
497- rename : ' {{.Version}}/stemcells.meta4'
498- version : candidate-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/.resource/version
499- # @ if len(data.values.stemcell_details.include_fips_iaas) > 0 :
500- - put : published-(@= data.values.stemcell_details.os_name @)-fips-stemcell-(@= str(data.values.stemcell_details.major_version) @)
501- params :
502- files :
503- - candidate-(@= data.values.stemcell_details.os_name @)-fips-stemcell-(@= str(data.values.stemcell_details.major_version) @)/*.tgz
504- options :
505- author_email : *ci_bot_email
506- author_name : *ci_bot_name
507- message : ' publish (heavy): (@= data.values.stemcell_details.os_name @)-fips/(@= str(data.values.stemcell_details.major_version) @).x'
508- rename : ' {{.Version}}/stemcells.meta4'
509- version : candidate-(@= data.values.stemcell_details.os_name @)-fips-stemcell-(@= str(data.values.stemcell_details.major_version) @)/.resource/version
510- # @ end
511- - params :
512- files :
513- - candidate-aws-light-stemcell/*.tgz
514- options :
515- author_email : *ci_bot_email
516- author_name : *ci_bot_name
517- message : ' publish (light aws): (@= data.values.stemcell_details.os_name @)/(@= str(data.values.stemcell_details.major_version) @).x'
518- rename : ' {{.Version}}/stemcells.aws.meta4'
519- version : candidate-aws-light-stemcell/.resource/version
520- put : published-aws-light-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)
521-
522- # ! once we release all regions with the same account, we can unify these again
523- - file : bosh-stemcells-ci/ci/tasks/light-aws/tag-aws-ami-light.yml
524- image : bosh-ecosystem-concourse-registry-image
525- task : tag-published-aws-ami-light-stemcells
526- params :
527- AWS_PAGER :
528- AWS_ACCESS_KEY_ID : ((aws_publish_us_access_key))
529- AWS_SECRET_ACCESS_KEY : ((aws_publish_us_secret_key))
530- GREP_PATTERN : grep -v 'gov-\|cn-'
531- - file : bosh-stemcells-ci/ci/tasks/light-aws/tag-aws-ami-light.yml
532- image : bosh-ecosystem-concourse-registry-image
533- task : tag-gov-published-aws-ami-light-stemcells
534- params :
535- AWS_PAGER :
536- AWS_ACCESS_KEY_ID : ((aws_publish_us-gov_access_key))
537- AWS_SECRET_ACCESS_KEY : ((aws_publish_us-gov_secret_key))
538- GREP_PATTERN : grep 'gov-'
539- # ! - file: bosh-stemcells-ci/ci/tasks/light-aws/tag-aws-ami-light.yml
540- # ! task: tag-china-published-aws-ami-light-stemcells
541- # ! params:
542- # ! AWS_ACCESS_KEY_ID: ((aws_publish_cn_access_key))
543- # ! AWS_SECRET_ACCESS_KEY: ((aws_publish_cn_secret_key))
544- # ! GREP_PATTERN: grep 'cn-'
504+ image : image/image.tar
505+ additional_tags : candidate-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/.resource/version
506+ - in_parallel :
507+ - put : published-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)
508+ params :
509+ files :
510+ - candidate-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/*.tgz
511+ options :
512+ author_email : *ci_bot_email
513+ author_name : *ci_bot_name
514+ message : ' publish (heavy): (@= data.values.stemcell_details.os_name @)/(@= str(data.values.stemcell_details.major_version) @).x'
515+ rename : ' {{.Version}}/stemcells.meta4'
516+ version : candidate-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/.resource/version
517+ # @ if len(data.values.stemcell_details.include_fips_iaas) > 0 :
518+ - put : published-(@= data.values.stemcell_details.os_name @)-fips-stemcell-(@= str(data.values.stemcell_details.major_version) @)
519+ params :
520+ files :
521+ - candidate-(@= data.values.stemcell_details.os_name @)-fips-stemcell-(@= str(data.values.stemcell_details.major_version) @)/*.tgz
522+ options :
523+ author_email : *ci_bot_email
524+ author_name : *ci_bot_name
525+ message : ' publish (heavy): (@= data.values.stemcell_details.os_name @)-fips/(@= str(data.values.stemcell_details.major_version) @).x'
526+ rename : ' {{.Version}}/stemcells.meta4'
527+ version : candidate-(@= data.values.stemcell_details.os_name @)-fips-stemcell-(@= str(data.values.stemcell_details.major_version) @)/.resource/version
528+ # @ end
529+ - params :
530+ files :
531+ - candidate-aws-light-stemcell/*.tgz
532+ options :
533+ author_email : *ci_bot_email
534+ author_name : *ci_bot_name
535+ message : ' publish (light aws): (@= data.values.stemcell_details.os_name @)/(@= str(data.values.stemcell_details.major_version) @).x'
536+ rename : ' {{.Version}}/stemcells.aws.meta4'
537+ version : candidate-aws-light-stemcell/.resource/version
538+ put : published-aws-light-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)
539+
540+ # ! once we release all regions with the same account, we can unify these again
541+ - file : bosh-stemcells-ci/ci/tasks/light-aws/tag-aws-ami-light.yml
542+ image : bosh-ecosystem-concourse-registry-image
543+ task : tag-published-aws-ami-light-stemcells
544+ params :
545+ AWS_PAGER :
546+ AWS_ACCESS_KEY_ID : ((aws_publish_us_access_key))
547+ AWS_SECRET_ACCESS_KEY : ((aws_publish_us_secret_key))
548+ GREP_PATTERN : grep -v 'gov-\|cn-'
549+ - file : bosh-stemcells-ci/ci/tasks/light-aws/tag-aws-ami-light.yml
550+ image : bosh-ecosystem-concourse-registry-image
551+ task : tag-gov-published-aws-ami-light-stemcells
552+ params :
553+ AWS_PAGER :
554+ AWS_ACCESS_KEY_ID : ((aws_publish_us-gov_access_key))
555+ AWS_SECRET_ACCESS_KEY : ((aws_publish_us-gov_secret_key))
556+ GREP_PATTERN : grep 'gov-'
557+ # ! - file: bosh-stemcells-ci/ci/tasks/light-aws/tag-aws-ami-light.yml
558+ # ! task: tag-china-published-aws-ami-light-stemcells
559+ # ! params:
560+ # ! AWS_ACCESS_KEY_ID: ((aws_publish_cn_access_key))
561+ # ! AWS_SECRET_ACCESS_KEY: ((aws_publish_cn_secret_key))
562+ # ! GREP_PATTERN: grep 'cn-'
545563 - params :
546564 files :
547565 - candidate-google-light-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/*.tgz
@@ -838,11 +856,12 @@ resources:
838856 # @ end
839857
840858- name : github-container-registry-(@= data.values.stemcell_details.os_name @)-stemcell
841- type : docker -image
859+ type : registry -image
842860 source :
843861 repository : ghcr.io/cloudfoundry/(@= data.values.stemcell_details.os_name @)-stemcell
844862 username : ((github_read_write_packages.username))
845863 password : ((github_read_write_packages.password))
864+ tag : latest
846865
847866- name : bosh-integration-registry-image
848867 type : registry-image
0 commit comments