Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script for kyma-installer artifacts generation #1551

Merged
merged 1 commit into from Nov 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 25 additions & 0 deletions installation/scripts/release-generate-kyma-installer-artifacts.sh
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

###
# Following script generates kyma-installer artifacts for a release.
# It produces two files: kyma-config-local.yaml and kyma-config-cluster.yaml
#
# INPUTS:
# - KYMA_INSTALLER_PUSH_DIR - (optional) directory where kyma-installer docker image is pushed, if specified should ends with a slash (/)
# - KYMA_INSTALLER_VERSION - version (image tag) of kyma-installer
# - ARTIFACTS_DIR - path to directory where artifacts will be stored
#
###

set -o errexit

CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
RESOURCES_DIR="${CURRENT_DIR}/../resources"

${CURRENT_DIR}/generate-kyma-installer.sh ${RESOURCES_DIR}/installer-config-local.yaml.tpl \
| sed -E ";s;image: eu.gcr.io\/kyma-project\/develop\/installer:.+;image: eu.gcr.io/kyma-project${KYMA_INSTALLER_PUSH_DIR}/kyma-installer:${KYMA_INSTALLER_VERSION};" \
> ${ARTIFACTS_DIR}/kyma-config-local.yaml

${CURRENT_DIR}/generate-kyma-installer.sh ${RESOURCES_DIR}/installer-config-cluster.yaml.tpl \
| sed -E ";s;image: eu.gcr.io\/kyma-project\/develop\/installer:.+;image: eu.gcr.io/kyma-project${KYMA_INSTALLER_PUSH_DIR}/kyma-installer:${KYMA_INSTALLER_VERSION};" \
> ${ARTIFACTS_DIR}/kyma-config-cluster.yaml