-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (28 loc) · 984 Bytes
/
deploy.yaml
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
30
31
32
33
34
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: self-hosted
name: Deploy to DETI machine
steps:
- name: Clean workspace
uses: AutoModality/[email protected]
- name: Checkout repo
uses: actions/[email protected]
- name: Down containers
run: docker compose down
- name: Remove build caches
run: docker builder prune -a -f
- name: Up containers
run: docker compose -f compose.prod.yaml up --build -d
env:
RABBITMQ_DEFAULT_PASS: ${{secrets.RABBITMQ_DEFAULT_PASS}}
POSTGRES_PASSWORD: ${{secrets.POSTGRES_PASSWORD}}
DOCKER_INFLUXDB_INIT_PASSWORD: ${{secrets.DOCKER_INFLUXDB_INIT_PASSWORD}}
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: ${{secrets.DOCKER_INFLUXDB_INIT_ADMIN_TOKEN}}
SPRING_SECURITY_JWT_SECRET: ${{secrets.SPRING_SECURITY_JWT_SECRET}}