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
with:
persist-credentials: false
- name: Read versions.env
id: meta
shell: bash
run: |
set -euo pipefail
while IFS= read -r line; do
case "$line" in ''|'#'*) continue ;; esac
echo "$line" >> "$GITHUB_ENV"
done < versions.env
set -a
# shellcheck disable=SC1091
source versions.env
set +a
identity="$DSH_VERSION"
[ -z "$RELEASE_REVISION" ] || identity="$DSH_VERSION-$RELEASE_REVISION"
{