-
Notifications
You must be signed in to change notification settings - Fork 20
44 lines (40 loc) · 1003 Bytes
/
production.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Production CI/CD
on:
release:
types: [released]
permissions:
actions: write
checks: write
contents: write
deployments: write
issues: write
discussions: write
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
jobs:
build:
uses: Monday-Morning/project-reclamation/.github/workflows/build.yml@main
with:
node_env: production
image_name: ${{ github.repository }}
registry: ghcr.io
context: .
dockerfile: ./Dockerfile
is_latest: true
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
deploy:
needs: build
uses: Monday-Morning/project-reclamation/.github/workflows/deploy.yml@main
with:
node_env: production
ssh_host: mondaymorning.nitrkl.ac.in
ssh_username: mm
image_name: ${{ github.repository }}
registry: ghcr.io
secrets:
env_vars: ${{ secrets.PROD_ENV }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}