Skip to content

update tarsweb/tarscpp #339

update tarsweb/tarscpp

update tarsweb/tarscpp #339

name: build-compiler-master
on:
push:
branches:
- master
paths:
- ".github/workflows/build-compiler-master.yml"
- "compiler/tools/**"
- "compiler/base-compiler-bullseye.Dockerfile"
- "submodule/TarsCpp"
pull_request:
branches:
- master
paths:
- ".github/workflows/build-compiler-master.yml"
- "compiler/tools/**"
- "submodule/TarsCpp/Changelist-3.x.md"
- "compiler/base-compiler-bullseye.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:latest
file: base-compiler-bullseye.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-ssl:latest
file: base-compiler-bullseye.Dockerfile
build-args: |
BRANCH=master
TARS_SSL=ON
platforms: linux/amd64,linux/arm64