mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-11-22 08:06:46 +08:00
feat(更新构建): 更新构建方式
This commit is contained in:
parent
d021217ef5
commit
6875347a72
@ -3,6 +3,12 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: build
|
||||||
|
pull: if-not-exists
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- wget -q -T 180 https://dl.google.com/android/repository/android-ndk-r21b-linux-x86_64.zip
|
||||||
|
- unzip -q android-ndk-r21b-linux-x86_64.zip
|
||||||
- name: docker
|
- name: docker
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
@ -4,7 +4,8 @@ FROM golang:buster
|
|||||||
# 作者信息
|
# 作者信息
|
||||||
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
||||||
|
|
||||||
# 安装工具
|
# 安装android ndk
|
||||||
RUN apt-get update \
|
COPY android-ndk-r21b /usr/local/android-ndk-r21b
|
||||||
&& apt-get install -y \
|
|
||||||
unzip
|
# 环境变量
|
||||||
|
ENV PATH=$PATH:/usr/local/android-ndk-r21b/toolchains/llvm/prebuilt/linux-x86_64/bin
|
Loading…
x
Reference in New Issue
Block a user