-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (85 loc) · 3.17 KB
/
benchmark.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Benchmark
on:
push: {}
workflow_dispatch: {}
permissions:
contents: read
id-token: write
jobs:
build-with-docker:
name: Build with Docker
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-qemu-action@v2
- name: Determine upstream commit SHA
id: upstream
run: echo "::set-output name=sha::$(cd upstream && git rev-parse HEAD)"
- name: Build Server image
uses: docker/build-push-action@v2
with:
context: https://github.com/temporalio/docker-builds.git#${{ steps.upstream.outputs.sha }}
file: ./server.Dockerfile
platforms: linux/amd64,linux/arm64
build-args: |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
- name: Build Server image
uses: docker/build-push-action@v2
with:
context: https://github.com/temporalio/docker-builds.git#${{ steps.upstream.outputs.sha }}
file: ./admin-tools.Dockerfile
platforms: linux/amd64,linux/arm64
build-args: |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
SERVER_IMAGE=temporaliotest/server:latest
- name: Build Auto Setup
uses: docker/build-push-action@v2
with:
context: https://github.com/temporalio/docker-builds.git#${{ steps.upstream.outputs.sha }}
file: ./auto-setup.Dockerfile
platforms: linux/amd64,linux/arm64
build-args: |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
SERVER_IMAGE=temporaliotest/server:latest
ADMIN_TOOLS_IMAGE=temporaliotest/admin-tools:latest
build-with-depot:
name: Build with Depot
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: depot/setup-action@v1
- name: Determine upstream commit SHA
id: upstream
run: echo "::set-output name=sha::$(cd upstream && git rev-parse HEAD)"
- name: Build Server image
uses: depot/build-push-action@v1
with:
context: https://github.com/temporalio/docker-builds.git#${{ steps.upstream.outputs.sha }}
file: ./server.Dockerfile
platforms: linux/amd64,linux/arm64
build-args: |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
- name: Build Server image
uses: depot/build-push-action@v1
with:
context: https://github.com/temporalio/docker-builds.git#${{ steps.upstream.outputs.sha }}
file: ./admin-tools.Dockerfile
platforms: linux/amd64,linux/arm64
build-args: |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
SERVER_IMAGE=temporaliotest/server:latest
- name: Build Auto Setup
uses: depot/build-push-action@v1
with:
context: https://github.com/temporalio/docker-builds.git#${{ steps.upstream.outputs.sha }}
file: ./auto-setup.Dockerfile
platforms: linux/amd64,linux/arm64
build-args: |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
SERVER_IMAGE=temporaliotest/server:latest
ADMIN_TOOLS_IMAGE=temporaliotest/admin-tools:latest