goenv/.drone.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

---
kind: pipeline
2023-10-15 23:23:33 +08:00
name: default
node:
2023-09-29 15:35:25 +08:00
region: cn
steps:
2020-09-22 15:55:02 +08:00
- name: build
pull: if-not-exists
2023-07-12 10:26:27 +08:00
image: debian
2020-09-22 15:55:02 +08:00
commands:
2023-09-29 15:35:25 +08:00
- sed -i "s|deb.debian.org|mirrors.ustc.edu.cn|g" /etc/apt/sources.list.d/debian.sources
2023-07-12 10:37:36 +08:00
- apt-get update && apt-get install -y wget unzip && rm -rf /var/lib/apt/lists/*
2024-08-15 03:25:19 +08:00
- wget -q -T 180 -4 https://dl.google.com/android/repository/android-ndk-r27-linux.zip
- unzip -q android-ndk-r27-linux.zip
- rm -f android-ndk-r27-linux.zip
2023-10-15 23:23:33 +08:00
- name: docker-cn
pull: if-not-exists
image: plugins/docker
settings:
repo: ccr.ccs.tencentyun.com/xiaoqidun/goenv
registry: ccr.ccs.tencentyun.com
2023-01-10 01:04:23 +08:00
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: DockerfileCN
2023-10-15 23:23:33 +08:00
- name: docker-hk
2023-01-10 01:04:23 +08:00
pull: if-not-exists
image: plugins/docker
settings:
repo: hkccr.ccs.tencentyun.com/xiaoqidun/goenv
registry: hkccr.ccs.tencentyun.com
username:
2022-02-23 11:06:11 +08:00
from_secret: docker_username
password:
2022-02-23 11:06:11 +08:00
from_secret: docker_password
2023-10-15 23:23:33 +08:00
dockerfile: DockerfileHK