-
Notifications
You must be signed in to change notification settings - Fork 13
68 lines (65 loc) · 1.93 KB
/
build-compiler-master-buster.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
name: build-compiler-master-buster
on:
push:
branches:
- master
paths:
- ".github/workflows/build-compiler-master-buster.yml"
- "compiler/tools/**"
- "compiler/base-compiler-buster.Dockerfile"
- "submodule/TarsCpp"
pull_request:
branches:
- master
paths:
- ".github/workflows/build-compiler-master-buster.yml"
- "compiler/tools/**"
- "compiler/base-compiler-buster.Dockerfile"
- "submodule/TarsCpp"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: env
run: env
- uses: actions/checkout@v1
- name: login docker hub
run: docker login -u ${{ secrets.name }} -p ${{ secrets.pass }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v3
with:
context: "{{defaultContext}}:compiler"
push: true
tags: tarscloud/base-compiler-buster:latest
file: base-compiler-buster.Dockerfile
build-args: |
BRANCH=master
TARS_SSL=OFF
platforms: linux/amd64,linux/arm64
build-ssl:
runs-on: ubuntu-20.04
steps:
- name: env
run: env
- uses: actions/checkout@v1
- name: login docker hub
run: docker login -u ${{ secrets.name }} -p ${{ secrets.pass }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v3
with:
context: "{{defaultContext}}:compiler"
push: true
tags: tarscloud/base-compiler-buster-ssl:latest
file: base-compiler-buster.Dockerfile
build-args: |
BRANCH=master
TARS_SSL=ON
platforms: linux/amd64,linux/arm64