-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (28 loc) · 1.01 KB
/
deploy_v2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: deploy_v2
on: workflow_dispatch
jobs:
build:
name: build
runs-on: self-hosted
steps:
- uses: actions/checkout@v1
- name: build
run: docker compose -f prod-docker-compose.yml build
env:
DATABASE_USER: ${{secrets.DATABASE_USER}}
DATABASE_PASSWORD: ${{secrets.DATABASE_PASSWORD}}
HASH_SALT: ${{secrets.HASH_SALT}}
ADMIN_LOGIN: ${{secrets.ADMIN_LOGIN}}
ADMIN_PASSWORD: ${{secrets.ADMIN_PASSWORD}}
run:
needs: [build]
runs-on: self-hosted
steps:
- name: run
run: docker compose -f prod-docker-compose.yml up -d
env:
DATABASE_USER: ${{secrets.DATABASE_USER}}
DATABASE_PASSWORD: ${{secrets.DATABASE_PASSWORD}}
HASH_SALT: ${{secrets.HASH_SALT}}
ADMIN_LOGIN: ${{secrets.ADMIN_LOGIN}}
ADMIN_PASSWORD: ${{secrets.ADMIN_PASSWORD}}