-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (37 loc) · 1.18 KB
/
ci.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
name: Build, Push, and Deploy
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build and Push Backend Docker Image
uses: docker/build-push-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
repository: den4200/portfolio_backend
path: ./portfolio_backend
dockerfile: ./portfolio_backend/Dockerfile
tag_with_sha: true
tag_with_ref: true
- name: Build and Push Frontend Docker Image
uses: docker/build-push-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
repository: den4200/portfolio_frontend
path: ./portfolio_frontend
dockerfile: ./portfolio_frontend/Dockerfile
tag_with_sha: true
tag_with_ref: true
- name: Deployment
uses: zzzze/webhook-trigger@48de98d2c0c5f90638946567d144ebe9da0f2de4
with:
webhook_url: ${{ secrets.DEPLOYMENT_WEBHOOK }}
options: ${{ secrets.DEPLOYMENT_OPTIONS }}