Skip to content

Commit

Permalink
Merge pull request #16 from DefangLabs/lio/add-debug-info
Browse files Browse the repository at this point in the history
Enable debug info
  • Loading branch information
lionello authored Sep 20, 2024
2 parents 860e61b + 7f1dae5 commit 0ea1c89
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,19 @@ runs:
DEFANG_INSTALL_VERSION: ${{ inputs['cli-version'] }}
GH_TOKEN: ${{ github.token }} # avoid rate-limits

- name: Set Defang environment variables
shell: bash
run: |
echo "DEFANG_PROVIDER=${{ inputs['provider'] }}" >> $GITHUB_ENV
echo "DEFANG_DEBUG=$RUNNER_DEBUG" >> $GITHUB_ENV
- name: Login to Defang
shell: bash
run: |
defang login
defang whoami
- name: Deploy Config
- name: Defang Config Set
shell: bash
run: |
# Iterate over the sources and set the environment variables
Expand All @@ -58,15 +64,16 @@ runs:
done
for source in $CONFIG_ENV_VARS; do
echo "Updating $source"
echo defang --provider=${{ inputs['provider'] }} config "${params[@]}" set -e $source
defang --provider=${{ inputs['provider'] }} config "${params[@]}" set -e $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'] }}

- name: Execute
- name: Defang Compose Up
shell: bash
working-directory: ${{ inputs.cwd }}
run: |
params=()
for filename in ${{ inputs['compose-files'] }}; do
Expand All @@ -79,10 +86,9 @@ runs:
if [[ "${DEFANG_INTERNAL_TEST}" == "dfng-test" ]]; then
# `defang compose up --dry-run` is used for testing as --mode flag is only available to the "compose up" command
echo defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up --dry-run
defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up --dry-run
echo defang compose "${params[@]}" up --dry-run
defang compose "${params[@]}" up --dry-run
else
echo defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up
defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up
echo defang compose "${params[@]}" up
defang compose "${params[@]}" up
fi
working-directory: ${{ inputs.cwd }}

0 comments on commit 0ea1c89

Please sign in to comment.