Skip to content

Commit

Permalink
Add separate dev layer deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkbatya committed Feb 29, 2024
1 parent 513ab4a commit 5039fe2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,17 @@ jobs:
run: |
echo ${{ steps.docker_build.outputs.digest }}
- name: 'Trigger k8s to use new image'
- name: 'Trigger k8s to use new dev image'
if: ${{ steps.tag.outputs.image_tag == '0.0.0' }}
uses: peter-evans/repository-dispatch@v2
with:
repository: ${{ secrets.INFRASTRUCTURE_REPO_DEV }}
token: ${{ secrets.K8S_GITHUB_PAT }}
event-type: flpr-app-deploy
client-payload: '{"image_tag": "${{steps.tag.outputs.image_tag}}"}'

- name: 'Trigger k8s to use new prod image'
if: ${{ steps.tag.outputs.image_tag != '0.0.0' }}
uses: peter-evans/repository-dispatch@v2
with:
repository: ${{ secrets.INFRASTRUCTURE_REPO }}
Expand Down

0 comments on commit 5039fe2

Please sign in to comment.