We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd87726 commit 9aba3feCopy full SHA for 9aba3fe
1 file changed
.github/workflows/deploy.yml
@@ -1,6 +1,10 @@
1
name: Deploy with Docker Compose
2
3
on:
4
+ workflow_run:
5
+ workflows: [ "Frontend CI", "Backend CI" ]
6
+ types:
7
+ - completed
8
workflow_dispatch:
9
push:
10
branches:
@@ -10,6 +14,8 @@ on:
14
11
15
jobs:
12
16
deploy:
17
+ if: ${{ github.event.workflow_run.conclusion == 'success' }}
18
+
13
19
runs-on: ubuntu-latest
20
21
steps:
@@ -26,6 +32,7 @@ jobs:
26
32
--protocol tcp \
27
33
--port 22 \
28
34
--cidr ${{ steps.ip.outputs.ipv4 }}/32
35
+ --region ap-northeast-2
29
36
30
37
- name: Deploy to EC2 with docker-compose
31
38
uses: appleboy/ssh-action@v0.1.10
0 commit comments