forked from james7132/Hourai
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.05 KB
/
docker-build.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: Docker Build
on:
workflow_run:
workflows: ["CI"]
branches: ["main"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build (base)
uses: docker/build-push-action@v2
with:
push: true
context: .
file: base/Dockerfile
tags: james7132/hourai:latest
-
name: Build (logger)
uses: docker/build-push-action@v2
with:
push: true
context: .
file: logger/Dockerfile.logger
tags: james7132/hourai:latest-logger
-
name: Build (music)
uses: docker/build-push-action@v2
with:
push: true
context: .
file: logger/Dockerfile.music
tags: james7132/hourai:latest-music