Skip to content

Commit

Permalink
Add multi-file support for config
Browse files Browse the repository at this point in the history
  • Loading branch information
edw-defang committed Aug 22, 2024
1 parent cc66197 commit 5b5f12f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 28 deletions.
13 changes: 12 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,18 @@ runs:
- name: Deploy Config
shell: bash
run: ${{ github.action_path }}/config.sh
run: |
# Iterate over the sources and set the environment variables
params=()
for filename in ${{ inputs['compose-files'] }}; do
params+=("-f")
params+=("$filename")
done
for source in $CONFIG_ENV_VARS; do
echo "Updating $source"
echo defang config "${params[@]}" set -e $source
defang config "${params[@]}" set -e $source
done
working-directory: ${{ inputs.cwd }}
env:
CONFIG_ENV_VARS: ${{ inputs['config-env-vars'] }}
Expand Down
27 changes: 0 additions & 27 deletions config.sh

This file was deleted.

0 comments on commit 5b5f12f

Please sign in to comment.