-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49b52ad
commit 77b0806
Showing
10 changed files
with
89 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
platform: linux | ||
|
||
image_resource: | ||
type: registry-image | ||
source: | ||
repository: ((app-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: | ||
DEBUG: true | ||
DOCKER_CONFIG: docker-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
platform: linux | ||
|
||
image_resource: | ||
type: registry-image | ||
source: | ||
repository: ((app-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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters