-
Notifications
You must be signed in to change notification settings - Fork 24
44 lines (42 loc) · 1.72 KB
/
build-compiler-tag.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
name: build-gateway-tag
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: docker.tarsyun.com
username: ${{ secrets.name }}
password: ${{ secrets.pass }}
- name: Get version
id: get_version
run: echo "::set-output name=VERSION::${GITHUB_REF#refs/tags/}"
- name: Create Build
run: |
docker run --rm --privileged tonistiigi/binfmt:latest --install all
docker buildx create --name k8s-framework-builder --use
docker buildx inspect --bootstrap --builder k8s-framework-builder
- name: Buildx Gateway
run: |
docker run -v `pwd`:/data --entrypoint "" tarscloud/base-deploy sh -c "cd /data && /usr/bin/create-buildx-dockerfile.sh cpp yaml/gateway.yaml ${{ steps.get_version.outputs.VERSION }} dockerfile/Dockerfile.cpp"
- name: Create Gateway Docker
run: |
./docker-buildx-cloud.sh
- name: Buildx Web
run: |
docker run -v `pwd`:/data --entrypoint "" tarscloud/base-deploy sh -c "cd /data && /usr/bin/create-buildx-dockerfile.sh nodejs yaml/web.yaml ${{ steps.get_version.outputs.VERSION }} dockerfile/Dockerfile.nodejs"
- name: Create web Docker
run: |
./docker-buildx-cloud.sh
- name: Buildx Product
run: |
docker run -v `pwd`:/data --entrypoint "" tarscloud/base-deploy sh -c "cd /data && /usr/bin/create-buildx-dockerfile-product.sh yaml/system.yaml ${{ steps.get_version.outputs.VERSION }}"
- name: Create web Docker
run: |
./docker-buildx-cloud-product.sh