-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (33 loc) · 895 Bytes
/
build.yaml
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
name: Build
on:
push:
branches:
- main
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Server
uses: docker/build-push-action@v3
with:
push: true
tags: shaowenchen/ops-server:latest
file: Dockerfile-Server
- name: Build and push Controller
uses: docker/build-push-action@v3
with:
push: true
tags: shaowenchen/ops-controller-manager:latest
file: Dockerfile
- name: Build and push Cli
uses: docker/build-push-action@v3
with:
push: true
tags: shaowenchen/ops-cli:latest
file: Dockerfile-Cli