Skip to content

Commit

Permalink
rename env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Jun 4, 2024
1 parent 54f04cb commit 5af1ecf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packs/dispatch/.env.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
TAG=registry.yourdomain.com/kapck/example:latest
URL=https://github.com/kubero-dev/template-nodeapp.git
REVISION=main
BUILDER=gcr.io/paketo-buildpacks/builder:base
SERVICE_ACCOUNT=kpack-sa
PIPELINE=pipelinename
APP=example
PHASE=dev
NAME=example
GIT_URL=https://github.com/kubero-dev/template-nodeapp.git
GIT_REF=main
6 changes: 3 additions & 3 deletions packs/dispatch/init.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# check if all required variables are set
if [ -z "$APP" ] || [ -z "$PHASE" ] || [ -z "$PIPELINE" ] || [ -z "$REPOSITORY" ] || [ -z "$TAG" ] || [ -z "$SERVICE_ACCOUNT" ] || [ -z "$BUILDER" ] || [ -z "$URL" ] || [ -z "$REVISION" ]; then
if [ -z "$APP" ] ||[ -z "$PIPELINE" ] || [ -z "$REPOSITORY" ] || [ -z "$TAG" ] || [ -z "$SERVICE_ACCOUNT" ] || [ -z "$BUILDER" ] || [ -z "$GIT_URL" ] || [ -z "$GIT_REF" ]; then
echo "$(date) One or more required variables are not set"
exit 1
fi
Expand All @@ -19,8 +19,8 @@ spec:
image: ${BUILDER}
source:
git:
url: ${URL}
revision: ${REVISION}
url: ${GIT_URL}
revision: ${GIT_REF}
EOF

# check if kubectl command failed
Expand Down

0 comments on commit 5af1ecf

Please sign in to comment.