4 changed files with 50 additions and 13 deletions
@ -1,8 +0,0 @@
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash |
||||
|
||||
export BUILD_INFO_LOCATION=$(pwd)/artifactory-repo/build-info.json |
||||
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' ) |
||||
java -jar /opt/concourse-release-scripts.jar syncToCentral "RELEASE" $BUILD_INFO_LOCATION || { exit 1; } |
||||
|
||||
echo "Sync complete" |
||||
echo $version > version/version |
||||
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
--- |
||||
platform: linux |
||||
image_resource: |
||||
type: registry-image |
||||
source: |
||||
repository: concourse/oci-build-task |
||||
tag: 0.9.1 |
||||
registry_mirror: |
||||
host: ((registry-mirror-host)) |
||||
username: ((registry-mirror-username)) |
||||
password: ((registry-mirror-password)) |
||||
inputs: |
||||
- name: ci-images-git-repo |
||||
outputs: |
||||
- name: image |
||||
caches: |
||||
- path: ci-image-cache |
||||
params: |
||||
CONTEXT: ci-images-git-repo/ci/images |
||||
DOCKERFILE: ci-images-git-repo/ci/images/ci-image/Dockerfile |
||||
DOCKER_HUB_AUTH: ((docker-hub-auth)) |
||||
run: |
||||
path: /bin/sh |
||||
args: |
||||
- "-c" |
||||
- | |
||||
mkdir -p /root/.docker |
||||
cat > /root/.docker/config.json <<EOF |
||||
{ "auths": { "https://index.docker.io/v1/": { "auth": "$DOCKER_HUB_AUTH" }}} |
||||
EOF |
||||
build |
||||
Loading…
Reference in new issue