Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
33 lines (26 loc) · 871 Bytes

File metadata and controls

executable file
·
33 lines (26 loc) · 871 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
DIRTY=
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
DIRTY="-dirty"
fi
COMMIT=${COMMIT:-$(git rev-parse --short HEAD)}
GIT_TAG=${GIT_TAG:-$(git tag -l --contains HEAD | head -n 1)}
if [[ -z "$DIRTY" && -n "$GIT_TAG" ]]; then
VERSION=$GIT_TAG
else
VERSION="0.0.0-${COMMIT}${DIRTY}"
fi
# ARCH is now expected to be in the environment, set by the Makefile
SUFFIX="-${ARCH}"
HELM_TAG="${HELM_TAG:-${TAG:-${VERSION}}}"
HELM_CHART_VERSION="${HELM_CHART_VERSION:-${HELM_TAG/v/}}"
TAG="${TAG:-${VERSION}${SUFFIX}}"
REPO="${REPO:-rancher}"
if echo $TAG | grep -q dirty; then
TAG=dev
HELM_TAG=dev
HELM_CHART_VERSION=0.0.0-dev
fi
DIST_DIR="${DIST_DIR:-$(dirname $0)/../dist/}"
mkdir -p ${DIST_DIR}
echo "export TAG=${TAG}; export HELM_TAG=${HELM_TAG}; export HELM_CHART_VERSION=${HELM_CHART_VERSION};" >${DIST_DIR}/tags
Morty Proxy This is a proxified and sanitized view of the page, visit original site.