Skip to content

Commit

Permalink
Merge pull request #2524 from cloudfoundry-incubator/cap-pipeline
Browse files Browse the repository at this point in the history
Update release pipeline
  • Loading branch information
nwmac authored Jun 26, 2018
2 parents 67158d9 + 9d42373 commit bb0bd97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
13 changes: 7 additions & 6 deletions deploy/ci/console-dev-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ resources:
branch: ((stratos-branch))
private_key: ((github-private-key))
tag_filter: "2*"
- name: stratos-master
- name: helm-repo
type: git
source:
uri: [email protected]:((github-organization))/((github-repository))
branch: master
uri: [email protected]:((helm-repo-github-organization))/((helm-repo-github-repository))
branch: ((helm-repo-branch))
private_key: ((github-private-key))
# Docker Images
- name: jetstream-image
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
- get: stratos
passed: [build-images]
trigger: true
- get: stratos-master
- get: helm-repo
- get: image-tag
passed: [build-images]
params:
Expand All @@ -144,6 +144,7 @@ jobs:
GIT_PRIVATE_KEY: ((github-private-key))
DOCKER_ORG: ((artifact-docker-organization))
DOCKER_REGISTRY: ((artifact-docker-registry))
HELM_REPO_PATH: ((helm-repo-path))
- put: helm-chart-tarball
params:
file: helm-chart/*.tgz
Expand All @@ -166,8 +167,8 @@ jobs:
file: stratos/deploy/ci/tasks/dev-releases/update-gh-release.yml
params:
GITHUB_TOKEN: ((github-access-token))
GITHUB_USER: ((github-organization))
GITHUB_REPO: ((github-repository))
GITHUB_USER: ((helm-repo-github-organization))
GITHUB_REPO: ((helm-repo-github-repository))
GIT_USER: ((concourse-user))
GIT_EMAIL: ((concourse-email))
GIT_PRIVATE_KEY: ((github-private-key))
12 changes: 6 additions & 6 deletions deploy/ci/tasks/dev-releases/create-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ platform: linux
inputs:
- name: stratos
- name: image-tag
- name: stratos-master
- name: helm-repo
outputs:
- name: helm-chart
image_resource:
Expand All @@ -23,7 +23,7 @@ run:
ROOT_DIR=$PWD
STRATOS=${ROOT_DIR}/stratos
source ${STRATOS}/deploy/ci/tasks/dev-releases/create-chart-helper.sh
STRATOS_MASTER=${ROOT_DIR}/stratos-master
HELM_REPO=${ROOT_DIR}/helm-repo/${HELM_REPO_PATH}
GIT_TAG=$(cat image-tag/v2-alpha-tag)
cd ${STRATOS}/deploy/kubernetes/
patchHelmChart ${GIT_TAG} ${DOCKER_ORG} ${DOCKER_REGISTRY} ./console
Expand All @@ -32,13 +32,13 @@ run:
helm package console
cp console*.tgz ${ROOT_DIR}/helm-chart/console-helm-chart-${GIT_TAG}.tgz
cd ${ROOT_DIR}/helm-chart/
if [ -f ${STRATOS_MASTER}/index.yaml ]; then
cp ${STRATOS_MASTER}/index.yaml ${ROOT_DIR}/helm-chart/
if [ -f ${HELM_REPO}/index.yaml ]; then
cp ${HELM_REPO}/index.yaml ${ROOT_DIR}/helm-chart/
MERGE_INDEX="--merge index.yaml"
fi
# Update Helm Repository
helm repo index ./ ${MERGE_INDEX} --url https://github.com/${GITHUB_ORG}/${GITHUB_REPO}/releases/download/${GIT_TAG}/
cp index.yaml ${STRATOS_MASTER}
cd ${STRATOS_MASTER}
cp index.yaml ${HELM_REPO}
cd ${HELM_REPO}
setupAndPushChange

0 comments on commit bb0bd97

Please sign in to comment.