-
Notifications
You must be signed in to change notification settings - Fork 839
52 lines (52 loc) · 1.48 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
45
46
47
48
49
50
51
52
name: Dockerfiles Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
# Check out the branch
- name: Checkout Code
uses: actions/checkout@v2
# Setup up builder
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Run a build for the Dockerfiles but don't publish
- name: Build Combined
id: docker_combined
uses: docker/build-push-action@v2
with:
context: ./
file: ./samples/KubernetesIngress.Sample/Combined/Dockerfile
push: false
tags: microsoft/yarp-combined:latest
- name: Build Ingress
id: docker_ingress
uses: docker/build-push-action@v2
with:
context: ./
file: ./samples/KubernetesIngress.Sample/Ingress/Dockerfile
push: false
tags: microsoft/yarp-ingress:latest
- name: Build Monitor
id: docker_monitor
uses: docker/build-push-action@v2
with:
context: ./
file: ./samples/KubernetesIngress.Sample/Monitor/Dockerfile
push: false
tags: microsoft/yarp-monitor:latest
- name: Build Backend
id: docker_backend
uses: docker/build-push-action@v2
with:
context: ./
file: ./samples/KubernetesIngress.Sample/backend/Dockerfile
push: false
tags: microsoft/yarp-backend:latest