Skip to content

Commit 9b86c77

Browse files
Merge pull request #23 from FelipeMenezesDM/develop
feat(actions): ajuste no workflow de deploy de aplicações laravel
2 parents 175eaec + 4ea1db2 commit 9b86c77

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/gcp-java-maven-app-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
execution-environment: "${{ fromJSON(steps.settings.outputs.output).settings.execution-environment }}"
4343
instances: "${{ steps.sql-instances-sockets-handler.outputs.instances }}"
4444
command-entrypoint: "${{ steps.custom-command-entrypoint-handler.outputs.entrypoint }}"
45-
command-args: "${{ fromJSON(steps.settings.outputs.output).settings.command.args }}"
45+
command-args: "${{ fromJSON(steps.settings.outputs.output).command.args }}"
4646
logging-driver: "${{ fromJSON(steps.settings.outputs.output).logging.driver }}"
4747
test-disable-unit: "${{ fromJSON(steps.settings.outputs.output).test.disable.unit }}"
4848
test-disable-mutation: "${{ fromJSON(steps.settings.outputs.output).test.disable.mutation }}"
@@ -65,7 +65,7 @@ jobs:
6565
- name: Custom command entrypoint handler
6666
id: custom-command-entrypoint-handler
6767
run: |
68-
entrypoint=($(echo '${{ toJSON(fromJSON(steps.settings.outputs.output).settings.command.entrypoint) }}' | sed -e "s/,/ /g" -e "s/[]['\"]//g"))
68+
entrypoint=($(echo '${{ toJSON(fromJSON(steps.settings.outputs.output).command.entrypoint) }}' | sed -e "s/,/ /g" -e "s/[]['\"]//g"))
6969
echo "entrypoint="$(IFS=,; echo "${entrypoint[*]}") >> $GITHUB_OUTPUT
7070
validate-install-dependencies:
7171
needs: settings

.github/workflows/gcp-laravel-app-dev.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
execution-environment: "${{ fromJSON(steps.settings.outputs.output).settings.execution-environment }}"
4343
instances: "${{ steps.sql-instances-sockets-handler.outputs.instances }}"
4444
command-entrypoint: "${{ steps.custom-command-entrypoint-handler.outputs.entrypoint }}"
45-
command-args: "${{ fromJSON(steps.settings.outputs.output).settings.command.args }}"
45+
command-args: "${{ fromJSON(steps.settings.outputs.output).command.args }}"
4646
test-disable-unit: "${{ fromJSON(steps.settings.outputs.output).test.disable.unit }}"
4747
test-disable-mutation: "${{ fromJSON(steps.settings.outputs.output).test.disable.mutation }}"
4848
test-disable-integration: "${{ fromJSON(steps.settings.outputs.output).test.disable.integration }}"
@@ -64,7 +64,7 @@ jobs:
6464
- name: Custom command entrypoint handler
6565
id: custom-command-entrypoint-handler
6666
run: |
67-
entrypoint=($(echo '${{ toJSON(fromJSON(steps.settings.outputs.output).settings.command.entrypoint) }}' | sed -e "s/,/ /g" -e "s/[]['\"]//g"))
67+
entrypoint=($(echo '${{ toJSON(fromJSON(steps.settings.outputs.output).command.entrypoint) }}' | sed -e "s/,/ /g" -e "s/[]['\"]//g"))
6868
echo "entrypoint="$(IFS=,; echo "${entrypoint[*]}") >> $GITHUB_OUTPUT
6969
validate-composer:
7070
needs: settings
@@ -132,7 +132,9 @@ jobs:
132132
- name: Run unit tests
133133
run: composer run test-unit
134134
deploy:
135-
needs: settings
135+
needs:
136+
- test-unit
137+
- settings
136138
name: Deploy to DEV
137139
environment:
138140
name: DEV

0 commit comments

Comments
 (0)