Skip to content

Commit

Permalink
Fix action triggers so deployment is after publish
Browse files Browse the repository at this point in the history
  • Loading branch information
GinoCanessa committed Aug 29, 2024
1 parent 5d9173d commit 834da0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/argo-ris.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Restart Deployment
on:
push:
branches:
- main
workflow_dispatch:
workflow_run:
workflows: ['Publish on GitHub Container Registry']
types: [completed]

jobs:
restart_deployment:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Configure Kubectl
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ghcr-docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create and publish a Docker image on GitHub Container Registry
name: Publish on GitHub Container Registry
# Basics from https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions
on:
push:
Expand Down

0 comments on commit 834da0b

Please sign in to comment.