Skip to content

Commit ec472a8

Browse files
committed
fix(cd): configure triggers
1 parent 45d90bf commit ec472a8

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/cd.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,23 @@ name: CD
22

33
on:
44
release:
5-
branches: [ "main" ]
6-
type: released
5+
branches: [main]
6+
types: [published]
77

88
jobs:
99
deploy:
10-
runs-on: self-hosted
10+
runs-on: [self-hosted, linux, x64, prod]
11+
environment: Production
1112
steps:
12-
- uses: actions/checkout@v4
13-
- name: deploy
14-
run: bash ./deploy/prod/deploy.sh
13+
- uses: actions/checkout@v4
14+
15+
- name: add secrets
16+
run: echo ${{ secrets.CONFIG }} > deploy/prod/ttt/secrets.yaml
17+
18+
- name: deploy
19+
run: bash ./deploy/prod/deploy.sh
20+
env:
21+
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
22+
23+
POSTGRES_TTT_PASSWORD: ${{ secrets.POSTGRES_TTT_PASSWORD }}
24+
POSTGRES_REPLICA_PASSWORD: ${{ secrets.POSTGRES_REPLICA_PASSWORD }}

0 commit comments

Comments
 (0)