1
0
mirror of https://github.com/sredevopsorg/deepseek-kubernetes-sandbox.git synced 2026-11-03 01:13:24 +00:00

Refactor environment variable loading in build workflow

Update the script to read environment variables from versions.env using 'source' instead of a loop.

Signed-off-by: Nicolás Georger <info@sredevops.org>
This commit is contained in:
Nicolás Georger
2026-10-25 18:56:53 -03:00
committed by GitHub
parent ecba8b96a6
commit d627526e3e

View File

@@ -40,15 +40,16 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: with:
persist-credentials: false persist-credentials: false
- name: Read versions.env - name: Read versions.env
id: meta id: meta
shell: bash shell: bash
run: | run: |
set -euo pipefail set -euo pipefail
while IFS= read -r line; do set -a
case "$line" in ''|'#'*) continue ;; esac # shellcheck disable=SC1091
echo "$line" >> "$GITHUB_ENV" source versions.env
done < versions.env set +a
identity="$DSH_VERSION" identity="$DSH_VERSION"
[ -z "$RELEASE_REVISION" ] || identity="$DSH_VERSION-$RELEASE_REVISION" [ -z "$RELEASE_REVISION" ] || identity="$DSH_VERSION-$RELEASE_REVISION"
{ {