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:
9
.github/workflows/build-main.yaml
vendored
9
.github/workflows/build-main.yaml
vendored
@@ -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"
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user