goenv/.drone.yml
xiaoqidun c8f32acd2e
Some checks failed
continuous-integration/drone/push Build is failing
feat(打包镜像): 为镜像安装wget
2023-07-12 10:33:19 +08:00

37 lines
1.0 KiB
YAML

---
kind: pipeline
type: docker
name: default
node:
region: hk
steps:
- name: build
pull: if-not-exists
image: debian
commands:
- apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
- wget -q -T 180 -4 https://dl.google.com/android/repository/android-ndk-r25c-linux.zip
- unzip -q android-ndk-r25c-linux.zip
- rm -f android-ndk-r25c-linux.zip
- name: docker-cn
pull: if-not-exists
image: plugins/docker
settings:
repo: ccr.ccs.tencentyun.com/xiaoqidun/goenv
registry: ccr.ccs.tencentyun.com
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: DockerfileCN
- name: docker-hk
pull: if-not-exists
image: plugins/docker
settings:
repo: hkccr.ccs.tencentyun.com/xiaoqidun/goenv
registry: hkccr.ccs.tencentyun.com
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: DockerfileHK