Skip to content

Commit

Permalink
return old pl
Browse files Browse the repository at this point in the history
  • Loading branch information
nikatar committed Feb 29, 2024
1 parent f22e2d8 commit 63c95c1
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,25 @@ jobs:
run: |
echo ${{ steps.docker_build.outputs.digest }}
- 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 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 }}
# 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' }}
- name: "Trigger k8s to use new image"
uses: peter-evans/repository-dispatch@v2
with:
repository: ${{ secrets.INFRASTRUCTURE_REPO }}
Expand Down

0 comments on commit 63c95c1

Please sign in to comment.