mirror of
https://github.com/xiaoqidun/goenv.git
synced 2025-11-26 16:41:02 +08:00
fix(构建脚本): 尝试修复脚本迁移错误
This commit is contained in:
@@ -12,24 +12,30 @@ jobs:
|
|||||||
registry: hkccr.ccs.tencentyun.com
|
registry: hkccr.ccs.tencentyun.com
|
||||||
image: hkccr.ccs.tencentyun.com/xiaoqidun/goenv:latest
|
image: hkccr.ccs.tencentyun.com/xiaoqidun/goenv:latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- name: clone
|
||||||
- run: |
|
uses: actions/checkout@v6
|
||||||
|
- name: download
|
||||||
|
run: |
|
||||||
apt-get update && apt-get install -y wget unzip && rm -rf /var/lib/apt/lists/*
|
apt-get update && apt-get install -y wget unzip && rm -rf /var/lib/apt/lists/*
|
||||||
wget -q -T 180 -4 https://dl.google.com/android/repository/android-ndk-r29-linux.zip
|
wget -q -T 180 -4 https://dl.google.com/android/repository/android-ndk-r29-linux.zip
|
||||||
unzip -q android-ndk-r29-linux.zip && rm -f android-ndk-r29-linux.zip
|
unzip -q android-ndk-r29-linux.zip && rm -f android-ndk-r29-linux.zip
|
||||||
- uses: docker/setup-buildx-action@v3
|
- name: setup
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
driver-opts: |
|
driver-opts: |
|
||||||
"env.http_proxy=${{ env.HTTP_PROXY }}"
|
"env.http_proxy=${{ env.HTTP_PROXY }}"
|
||||||
"env.https_proxy=${{ env.HTTPS_PROXY }}"
|
"env.https_proxy=${{ env.HTTPS_PROXY }}"
|
||||||
"env.no_proxy=${{ env.NO_PROXY }}"
|
"env.no_proxy=${{ env.NO_PROXY }}"
|
||||||
- uses: docker/login-action@v3
|
- name: login
|
||||||
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ matrix.registry }}
|
registry: ${{ matrix.registry }}
|
||||||
username: ${{ secrets.docker_username }}
|
username: ${{ secrets.docker_username }}
|
||||||
password: ${{ secrets.docker_password }}
|
password: ${{ secrets.docker_password }}
|
||||||
- uses: docker/build-push-action@v6
|
- name: build
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
context: .
|
||||||
file: ${{ matrix.dockerfile }}
|
file: ${{ matrix.dockerfile }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ matrix.image }}
|
tags: ${{ matrix.image }}
|
||||||
|
|||||||
Reference in New Issue
Block a user