-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (48 loc) · 1.51 KB
/
docker-image.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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build and Push Docker images
on:
push:
branches:
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v1
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push API Docker Image
uses: docker/build-push-action@v2
with:
context: src/api
file: ./src/api/Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/nux-server-api:latest
- name: Build and push Inference Docker Image
uses: docker/build-push-action@v2
with:
context: src/inference
file: ./src/inference/Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/nux-server-inference:latest
- name: Build and push Parse Docker Image
uses: docker/build-push-action@v2
with:
context: src/parse
file: ./src/parse/Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/nux-server-parse:latest
- name: Build and push Listener Docker Image
uses: docker/build-push-action@v2
with:
context: src/parse
file: ./src/listen/Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/nux-server-listener:latest