-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.09 KB
/
deploy-main.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
35
36
37
38
name: Productions
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: main
steps:
- name: Check out the repository
uses: actions/checkout@v2
with:
ref: main
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push Docker images
env:
VITE_DISCORD_CLIENT_ID: ${{ secrets.VITE_DISCORD_CLIENT_ID }}
VITE_DISCORD_CLIENT_SECRET: ${{ secrets.VITE_DISCORD_CLIENT_SECRET }}
VITE_DISCORD_OAUTH2_URL: ${{ secrets.VITE_DISCORD_OAUTH2_URL }}
VITE_API_URL: ${{ secrets.VITE_API_URL }}
run: |
docker compose -f docker-compose.yaml build
- name: Run Docker Compose
env:
VITE_DISCORD_CLIENT_ID: ${{ secrets.VITE_DISCORD_CLIENT_ID }}
VITE_DISCORD_CLIENT_SECRET: ${{ secrets.VITE_DISCORD_CLIENT_SECRET }}
VITE_DISCORD_OAUTH2_URL: ${{ secrets.VITE_DISCORD_OAUTH2_URL }}
VITE_API_URL: ${{ secrets.VITE_API_URL }}
run: |
docker compose -f docker-compose.yaml up -d