Skip to content

Commit

Permalink
fix run of reusable deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
JaSei committed Oct 31, 2023
1 parent a34e001 commit 9032de8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/_service_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
defaults:
run:
working-directory: services/${{ inputs.service_name }}/
outputs:
new_tag: ${{ steps.tag_image.outputs.next_tag }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -56,10 +58,10 @@ jobs:
prerelease: ${{ github.event_name == 'workflow_dispatch' }}


- name: Automatic deploy to Dev
if: ${{ inputs.automatic_deploy_to_dev == true }}
uses: ./.github/workflows/deploy.yaml
with:
checkout_ref: ${{ steps.tag_image.outputs.next_tag }}
service_name: ${{ inputs.service_name }}
environment: dev
automatic_deploy:
uses: .github/workflows/deploy.yaml
if: ${{ inputs.automatic_deploy_to_dev == true }}
with:
checkout_ref: ${{ needs.release.outputs.next_tag }}
service_name: ${{ inputs.service_name }}
environment: dev

0 comments on commit 9032de8

Please sign in to comment.