Skip to content

Commit 04b0e47

Browse files
committed
trying to get cd file to work after ci completes
1 parent 8b2a9ea commit 04b0e47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ name: Deploy on EC2-Instance
33
on:
44
workflow_run:
55
workflows: ["Docker Image CI"]
6+
branches: [deploy]
67
types: [completed]
78

89
jobs:
910
deploy:
1011
name: Deploy to EC2
1112
runs-on: ubuntu-latest
12-
13+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1314
steps:
1415

1516
- name: Deploy via SSH

0 commit comments

Comments
 (0)