From 2058d1fd021e11d41466fb6b53b828cde2bca01a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 22 Oct 2024 12:23:47 -0400 Subject: [PATCH] update resource_types --- ci/pipeline.yml | 87 +++++++++++++++++++++++++++++-------------------- 1 file changed, 52 insertions(+), 35 deletions(-) diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 24219b3..c884290 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -1,43 +1,60 @@ jobs: -- name: set-self - plan: - - get: src - trigger: true - - set_pipeline: self - file: src/ci/pipeline.yml + - name: set-self + plan: + - get: src + trigger: true + - set_pipeline: self + file: src/ci/pipeline.yml -- name: mirror-dockerhub-image - plan: - - get: docker-hub-image - trigger: true - params: - format: oci - - - put: ecr-image - params: - image: docker-hub-image/image.tar + - name: mirror-dockerhub-image + plan: + - get: docker-hub-image + trigger: true + params: + format: oci + - put: ecr-image + params: + image: docker-hub-image/image.tar resources: + - name: docker-hub-image + type: registry-image + source: + repository: ubuntu + tag: "22.04" + + - name: ecr-image + type: registry-image + source: + aws_access_key_id: ((ecr_aws_key)) + aws_secret_access_key: ((ecr_aws_secret)) + repository: ubuntu + tag: "22.04" + aws_region: us-gov-west-1 -- name: docker-hub-image - type: registry-image - source: - repository: ubuntu - tag: "22.04" + - name: src + type: git + source: + uri: https://github.com/cloud-gov/ubuntu-mirror + branch: main + commit_verification_keys: ((cloud-gov-pgp-keys)) -- name: ecr-image - type: registry-image - source: - aws_access_key_id: ((ecr_aws_key)) - aws_secret_access_key: ((ecr_aws_secret)) - repository: ubuntu - tag: "22.04" - aws_region: us-gov-west-1 +resource_types: + - name: registry-image + type: registry-image + source: + aws_access_key_id: ((ecr_aws_key)) + aws_secret_access_key: ((ecr_aws_secret)) + repository: registry-image-resource + aws_region: us-gov-west-1 + tag: latest -- name: src - type: git - source: - uri: https://github.com/cloud-gov/ubuntu-mirror - branch: main - commit_verification_keys: ((cloud-gov-pgp-keys)) + - name: git + type: registry-image + source: + aws_access_key_id: ((ecr_aws_key)) + aws_secret_access_key: ((ecr_aws_secret)) + repository: git-resource + aws_region: us-gov-west-1 + tag: latest