Repository navigation
64 lines (51 loc) · 1.97 KB
/
Copy pathmain.yml
File metadata and controls
64 lines (51 loc) · 1.97 KB
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
54
55
56
57
58
59
60
61
62
63
64
name: MAIN Workflow
on:
push:
branches:
- main
jobs:
docker-build-api:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build API Docker image
run: docker build -t ghcr.io/lyttle-development/community.v3.api:main -f Api/Dockerfile .
- name: Push API Docker image to GitHub Container Registry
run: docker push ghcr.io/lyttle-development/community.v3.api:main
docker-build-client:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Client Docker image
run: docker build -t ghcr.io/lyttle-development/community.v3.client:main -f Client/Dockerfile .
- name: Push Client Docker image to GitHub Container Registry
run: docker push ghcr.io/lyttle-development/community.v3.client:main
docker-build-dashboard:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Dashboard Docker image
run: docker build -t ghcr.io/lyttle-development/community.v3.dashboard:main -f Dashboard/Dockerfile .
- name: Push Dashboard Docker image to GitHub Container Registry
run: docker push ghcr.io/lyttle-development/community.v3.dashboard:main