Add GitHub Action
This commit is contained in:
parent
635a141c58
commit
e4b8e61e7f
11
.github/workflows/cicd.yaml
vendored
11
.github/workflows/cicd.yaml
vendored
@ -62,8 +62,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Load environment variables
|
- name: Load environment variables
|
||||||
run: |
|
run: |
|
||||||
env_vars=$(cat deployment/deploy_env_vars)
|
while IFS= read -r line || [ -n "$line" ]; do
|
||||||
echo "$env_vars" >> $GITHUB_ENV
|
# Skip comments and empty lines
|
||||||
|
if [[ "$line" =~ ^#.*$ ]] || [[ -z "$line" ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Export the environment variable
|
||||||
|
echo "$line" >> $GITHUB_ENV
|
||||||
|
done < deployment/deploy_env_vars
|
||||||
|
|
||||||
- name: Generate image tag
|
- name: Generate image tag
|
||||||
id: set_outputs
|
id: set_outputs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user