Files
goenv/.gitea/workflows/build.yaml
T
xiaoqidun 3d5b07edd2
/ build (DockerfileCN, ccr.ccs.tencentyun.com/xiaoqidun/goenv:latest, ccr.ccs.tencentyun.com) (push) Has been cancelled
/ build (DockerfileHK, hkccr.ccs.tencentyun.com/xiaoqidun/goenv:latest, hkccr.ccs.tencentyun.com) (push) Has been cancelled
feat(添加工具): 更齐全的构建工具包
2026-03-05 18:32:57 +08:00

44 lines
1.7 KiB
YAML

on: [push, workflow_dispatch]
jobs:
build:
runs-on: cn
strategy:
matrix:
include:
- dockerfile: DockerfileCN
registry: ccr.ccs.tencentyun.com
image: ccr.ccs.tencentyun.com/xiaoqidun/goenv:latest
- dockerfile: DockerfileHK
registry: hkccr.ccs.tencentyun.com
image: hkccr.ccs.tencentyun.com/xiaoqidun/goenv:latest
steps:
- name: checkout
uses: actions/checkout@v6
- name: download
run: |
apt-get update && apt-get install -y wget unzip && rm -rf /var/lib/apt/lists/*
wget -q -T 180 -4 https://github.com/thongtech/go-legacy-win7/releases/download/v1.26.0-2/go-legacy-win7-1.26.0-2.linux_amd64.tar.gz
wget -q -T 180 -4 https://dl.google.com/android/repository/android-ndk-r29-linux.zip
tar -zxf go-legacy-win7-1.26.0-2.linux_amd64.tar.gz && rm -f go-legacy-win7-1.26.0-2.linux_amd64.tar.gz
unzip -q android-ndk-r29-linux.zip && rm -f android-ndk-r29-linux.zip
- name: docker setup
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
"env.http_proxy=${{ env.HTTP_PROXY }}"
"env.https_proxy=${{ env.HTTPS_PROXY }}"
"env.no_proxy=${{ env.NO_PROXY }}"
- name: docker login
uses: docker/login-action@v3
with:
registry: ${{ matrix.registry }}
username: ${{ secrets.docker_username }}
password: ${{ secrets.docker_password }}
- name: docker build
uses: docker/build-push-action@v6
with:
context: .
push: true
provenance: false
file: ${{ matrix.dockerfile }}
tags: ${{ matrix.image }}