Skip to content

Commit

Permalink
Define registry-image-private in a template and import it across pipe…
Browse files Browse the repository at this point in the history
…lines that need it (#968)
  • Loading branch information
a-crate authored Dec 7, 2023
1 parent 7f17b14 commit 808d922
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions concourse/pipelines/artifact-releaser-test.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ local pkggroup = {
type: 'docker-image',
source: { repository: 'cftoolsmiths/cron-resource' },
},
common.RegistryImagePrivate,
],
resources: [
common.GitResource('guest-test-infra'),
Expand Down
7 changes: 2 additions & 5 deletions concourse/pipelines/partner-image-validations.jsonnet
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
local common = import '../templates/common.libsonnet';
local imagetesttask = {
local task = self,

Expand Down Expand Up @@ -312,11 +313,7 @@ local slesarm64images = [
// Start of output.
{
resource_types: [
{
name: 'registry-image-private',
type: 'registry-image',
source: { repository: 'gcr.io/compute-image-tools/registry-image-forked' },
},
common.RegistryImagePrivate,
{
name: 'gce-image',
type: 'registry-image-private',
Expand Down
5 changes: 5 additions & 0 deletions concourse/templates/common.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,9 @@
],
},
},
RegistryImagePrivate:: {
name: 'registry-image-private',
type: 'registry-image',
source: { repository: 'gcr.io/compute-image-tools/registry-image-forked' },
},
}

0 comments on commit 808d922

Please sign in to comment.