Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update resource_types #3

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 52 additions & 35 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
@@ -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