-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (51 loc) · 1.57 KB
/
deploy-app.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Deploy app to cloud
on:
push:
tags:
- '*'
jobs:
pre-run:
name: '⚙ Running pre-deploy checks'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/build
- name: Test
uses: ./.github/actions/test
- name: Install dependencies
uses: ./.github/actions/build
- name: Lint project
uses: ./.github/actions/lint
setup-image:
name: "🏗 Build image and push it to dockerhub"
runs-on: ubuntu-latest
needs: pre-run
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare image
uses: ./.github/actions/prepare-image
with:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
deploy-app:
name: '🚀 Deploy app to Oracle OCI'
runs-on: ubuntu-latest
needs: setup-image
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy app
uses: ./.github/actions/deploy-app
with:
ADDRESS_VM: ${{ secrets.ADDRESS_VM }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
GUILD_ID: ${{ secrets.GUILD_ID }}
SSH_KEY: ${{ secrets.SSH_KEY }}
KNOWN_HOSTS: ${{ secrets.KNOWN_HOSTS }}
DATABASE_CONNECTION_STRING: ${{ secrets.DATABASE_CONNECTION_STRING }}