Skip to content

Commit 7f1dae5

Browse files
committed
Enable debug info
1 parent 860e61b commit 7f1dae5

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

action.yaml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,19 @@ runs:
4141
DEFANG_INSTALL_VERSION: ${{ inputs['cli-version'] }}
4242
GH_TOKEN: ${{ github.token }} # avoid rate-limits
4343

44+
- name: Set Defang environment variables
45+
shell: bash
46+
run: |
47+
echo "DEFANG_PROVIDER=${{ inputs['provider'] }}" >> $GITHUB_ENV
48+
echo "DEFANG_DEBUG=$RUNNER_DEBUG" >> $GITHUB_ENV
49+
4450
- name: Login to Defang
4551
shell: bash
4652
run: |
4753
defang login
4854
defang whoami
4955
50-
- name: Deploy Config
56+
- name: Defang Config Set
5157
shell: bash
5258
run: |
5359
# Iterate over the sources and set the environment variables
@@ -58,15 +64,16 @@ runs:
5864
done
5965
for source in $CONFIG_ENV_VARS; do
6066
echo "Updating $source"
61-
echo defang --provider=${{ inputs['provider'] }} config "${params[@]}" set -e $source
62-
defang --provider=${{ inputs['provider'] }} config "${params[@]}" set -e $source
67+
echo defang config "${params[@]}" set -e $source
68+
defang config "${params[@]}" set -e $source
6369
done
6470
working-directory: ${{ inputs.cwd }}
6571
env:
6672
CONFIG_ENV_VARS: ${{ inputs['config-env-vars'] }}
6773

68-
- name: Execute
74+
- name: Defang Compose Up
6975
shell: bash
76+
working-directory: ${{ inputs.cwd }}
7077
run: |
7178
params=()
7279
for filename in ${{ inputs['compose-files'] }}; do
@@ -79,10 +86,9 @@ runs:
7986
8087
if [[ "${DEFANG_INTERNAL_TEST}" == "dfng-test" ]]; then
8188
# `defang compose up --dry-run` is used for testing as --mode flag is only available to the "compose up" command
82-
echo defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up --dry-run
83-
defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up --dry-run
89+
echo defang compose "${params[@]}" up --dry-run
90+
defang compose "${params[@]}" up --dry-run
8491
else
85-
echo defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up
86-
defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up
92+
echo defang compose "${params[@]}" up
93+
defang compose "${params[@]}" up
8794
fi
88-
working-directory: ${{ inputs.cwd }}

0 commit comments

Comments
 (0)