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