Skip to content

Commit b1bcf21

Browse files
authored
Merge pull request #8 from fullstack-devops/feature/show-logs-k8s
fix for logs in k8s
2 parents b1d8af9 + 73b0003 commit b1bcf21

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

.github/workflows/pr-build.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ jobs:
131131
env: #ACI_ARTIFACT_1_URL
132132
GITHUB_TOKEN: ${{ secrets.HELM_REPO_TOKEN }}
133133
run: |
134-
git config user.name "$GITHUB_ACTOR"
135-
git config user.email "[email protected]"
136-
137134
helm repo index out/ --url "$ACI_ARTIFACT_1_URL" --merge helm-charts/index.yaml
138135
cp -f out/index.yaml helm-charts/index.yaml
139136

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ jobs:
9292
cache-name: cache-outputs-modules
9393
with:
9494
path: out/
95-
key: dns-bind-${{ github.event.pull_request.head.sha }}-${{ hashFiles('out/dns-bind*') }}
95+
key: dns-bind-${{ github.sha }}-${{ hashFiles('out/dns-bind*') }}
9696
restore-keys: |
97-
dns-bind-${{ github.event.pull_request.head.sha }}
97+
dns-bind-${{ github.sha }}
9898
9999
publish_release:
100100
runs-on: ubuntu-latest
@@ -111,7 +111,7 @@ jobs:
111111
cache-name: cache-outputs-modules
112112
with:
113113
path: out/
114-
key: dns-bind-${{ github.event.pull_request.head.sha }}
114+
key: dns-bind-${{ github.sha }}
115115

116116
- name: Check out helm-charts
117117
uses: actions/checkout@v2
@@ -131,7 +131,7 @@ jobs:
131131

132132
- name: Helm index
133133
env:
134-
CHART_URL: "https://github.com/${{ github.repository }}/releases/download/${{ needs.generate_infos.outputs.version }}/dns-bind-${{ needs.generate_infos.outputs.version }}.tgz"
134+
CHART_URL: "https://github.com/${{ github.repository }}/releases/download/${{ needs.generate_infos.outputs.version }}"
135135
run: |
136136
export
137137
helm repo index out/ --url "$CHART_URL" --merge helm-charts/index.yaml

docker-image/docker-entrypoint.sh

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,20 @@ log() {
4949
local message="${2}" # msg to print
5050
local debug="${3}" # 0: only warn and error, >0: ok and info
5151

52-
local clr_ok="\033[0;32m"
53-
local clr_info="\033[0;34m"
54-
local clr_warn="\033[0;33m"
55-
local clr_err="\033[0;31m"
56-
local clr_rst="\033[0m"
57-
5852
if [ "${type}" = "ok" ]; then
5953
if [ "${debug}" -gt "0" ]; then
60-
printf "${clr_ok}[OK] %s${clr_rst}\n" "${message}" 1>&2
54+
echo "[OK] ${message}"
6155
fi
6256
elif [ "${type}" = "info" ]; then
6357
if [ "${debug}" -gt "0" ]; then
64-
printf "${clr_info}[INFO] %s${clr_rst}\n" "${message}" 1>&2
58+
echo "[INFO] ${message}"
6559
fi
6660
elif [ "${type}" = "warn" ]; then
67-
printf "${clr_warn}[WARN] %s${clr_rst}\n" "${message}" 1>&2 # stdout -> stderr
61+
echo "[WARN] ${message}"
6862
elif [ "${type}" = "err" ]; then
69-
printf "${clr_err}[ERR] %s${clr_rst}\n" "${message}" 1>&2 # stdout -> stderr
63+
echo "[ERR] ${message}"
7064
else
71-
printf "${clr_err}[???] %s${clr_rst}\n" "${message}" 1>&2 # stdout -> stderr
65+
echo "[???] ${message}"
7266
fi
7367
}
7468

0 commit comments

Comments
 (0)