Skip to content

update tarsweb/tarscpp #160

update tarsweb/tarscpp

update tarsweb/tarscpp #160

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