Sha256: 000b1e930209c67a21547c11ad81184364c02d1c33caf31d88fa085373749200

Contents?: true

Size: 775 Bytes

Versions: 1

Compression:

Stored size: 775 Bytes

Contents

#! /bin/bash
# exit script when any command ran here returns with non-zero exit code
set -e

COMMIT_SHA1=$CIRCLE_SHA1

  # We must export it so it's available for envsubst
export COMMIT_SHA1=$COMMIT_SHA1

  # since the only way for envsubst to work on files is using input/output redirection,
  #  it's not possible to do in-place substitution, so we need to save the output to another file
  #  and overwrite the original with that one.
envsubst <./k8s/app-deployment.yml >./k8s/app-deployment.yml.out
mv ./k8s/app-deployment.yml.out ./k8s/app-deployment.yml

echo "$KUBERNETES_CLUSTER_CERTIFICATE" | base64 --decode > cert.crt

./kubectl \
--kubeconfig=/dev/null \
--server=$KUBERNETES_SERVER \
--certificate-authority=cert.crt \
--token=$KUBERNETES_TOKEN \
apply -f ./k8s/

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roro-0.3.33 lib/roro/stacks/unstoppable_developer_styles/sashimi/devops/ci_styles/circleci/templates/stage_one/scripts/ci-deploy.sh.tt