Migrate to new image repositories
This commit is contained in:
13
ci/scripts/generate-docker-credentials.sh
Executable file
13
ci/scripts/generate-docker-credentials.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
export TERM="xterm-256color"
|
||||
|
||||
readonly DOCKER_CONFIG_OUTPUT="${DOCKER_CONFIG_OUTPUT:?must be set}"
|
||||
|
||||
# Note that we don't use libs.sh here because that script requires bash, and
|
||||
# we don't have bash in this container image
|
||||
|
||||
printf "%s" "$REGISTRY_PASSWORD" | docker login "$REGISTRY" --username "$REGISTRY_USERNAME" --password-stdin
|
||||
cp -v ~/.docker/config.json "$DOCKER_CONFIG_OUTPUT/"
|
||||
@@ -1,19 +0,0 @@
|
||||
---
|
||||
platform: linux
|
||||
image_resource:
|
||||
type: registry-image
|
||||
source:
|
||||
repository: ((dockerhub-mirror-registry))/concourse/oci-build-task
|
||||
tag: 0.11.1
|
||||
|
||||
inputs:
|
||||
- name: source
|
||||
|
||||
outputs:
|
||||
- name: image
|
||||
|
||||
run:
|
||||
path: build
|
||||
|
||||
params:
|
||||
CONTEXT:
|
||||
25
ci/tasks/build-oci-image.yml
Normal file
25
ci/tasks/build-oci-image.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
platform: linux
|
||||
|
||||
image_resource:
|
||||
type: registry-image
|
||||
source:
|
||||
repository: ((open-service-broker-virtual-docker-registry))/concourse/oci-build-task
|
||||
tag: 0.11.1
|
||||
username: ((broadcom-jfrog-artifactory-robot-account.username))
|
||||
password: ((broadcom-jfrog-artifactory-robot-account.password))
|
||||
|
||||
inputs:
|
||||
- name: git-repo
|
||||
- name: docker-config
|
||||
|
||||
outputs:
|
||||
- name: image
|
||||
|
||||
run:
|
||||
path: build
|
||||
|
||||
params:
|
||||
CONTEXT:
|
||||
DEBUG: true
|
||||
DOCKER_CONFIG: docker-config
|
||||
@@ -3,9 +3,9 @@ platform: linux
|
||||
image_resource:
|
||||
type: registry-image
|
||||
source:
|
||||
repository: ((corporate-harbor-registry))/((dockerhub-organization))/scosb-ci
|
||||
username: ((corporate-harbor-robot-account.username))
|
||||
password: ((corporate-harbor-robot-account.password))
|
||||
repository: ((open-service-broker-dev-docker-registry))/ci/scosb-ci
|
||||
username: ((broadcom-jfrog-artifactory-robot-account.username))
|
||||
password: ((broadcom-jfrog-artifactory-robot-account.password))
|
||||
tag: ((ci-image-tag))
|
||||
inputs:
|
||||
- name: git-repo
|
||||
|
||||
25
ci/tasks/generate-docker-credentials.yml
Normal file
25
ci/tasks/generate-docker-credentials.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
platform: linux
|
||||
|
||||
image_resource:
|
||||
type: registry-image
|
||||
source:
|
||||
repository: ((open-service-broker-virtual-docker-registry))/docker
|
||||
tag: 26-cli
|
||||
username: ((broadcom-jfrog-artifactory-robot-account.username))
|
||||
password: ((broadcom-jfrog-artifactory-robot-account.password))
|
||||
|
||||
inputs:
|
||||
- name: git-repo
|
||||
|
||||
outputs:
|
||||
- name: docker-config
|
||||
|
||||
run:
|
||||
path: ci/scripts/generate-docker-credentials.sh
|
||||
dir: git-repo
|
||||
|
||||
params:
|
||||
DOCKER_CONFIG_OUTPUT: ../docker-config
|
||||
REGISTRY: ((registry))
|
||||
REGISTRY_USERNAME: ((registry-username))
|
||||
REGISTRY_PASSWORD: ((registry-password))
|
||||
@@ -3,7 +3,9 @@ platform: linux
|
||||
image_resource:
|
||||
type: registry-image
|
||||
source:
|
||||
repository: ((dockerhub-mirror-registry))/springio/concourse-release-scripts
|
||||
repository: ((open-service-broker-virtual-docker-registry))/springio/concourse-release-scripts
|
||||
username: ((broadcom-jfrog-artifactory-robot-account.username))
|
||||
password: ((broadcom-jfrog-artifactory-robot-account.password))
|
||||
tag: '0.3.4'
|
||||
inputs:
|
||||
- name: git-repo
|
||||
|
||||
@@ -3,9 +3,9 @@ platform: linux
|
||||
image_resource:
|
||||
type: registry-image
|
||||
source:
|
||||
repository: ((corporate-harbor-registry))/((dockerhub-organization))/scosb-ci
|
||||
username: ((corporate-harbor-robot-account.username))
|
||||
password: ((corporate-harbor-robot-account.password))
|
||||
repository: ((open-service-broker-dev-docker-registry))/ci/scosb-ci
|
||||
username: ((broadcom-jfrog-artifactory-robot-account.username))
|
||||
password: ((broadcom-jfrog-artifactory-robot-account.password))
|
||||
tag: ((ci-image-tag))
|
||||
inputs:
|
||||
- name: git-repo
|
||||
|
||||
@@ -3,7 +3,9 @@ platform: linux
|
||||
image_resource:
|
||||
type: registry-image
|
||||
source:
|
||||
repository: ((dockerhub-mirror-registry))/springio/concourse-release-scripts
|
||||
repository: ((open-service-broker-virtual-docker-registry))/springio/concourse-release-scripts
|
||||
username: ((broadcom-jfrog-artifactory-robot-account.username))
|
||||
password: ((broadcom-jfrog-artifactory-robot-account.password))
|
||||
tag: '0.3.4'
|
||||
inputs:
|
||||
- name: git-repo
|
||||
|
||||
Reference in New Issue
Block a user