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 f82ab5a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 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,11 @@ 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
needs: release
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 f82ab5a

Please sign in to comment.