2020-09-24 01:11:18 +08:00
|
|
|
---
|
2020-09-22 15:38:27 +08:00
|
|
|
kind: pipeline
|
2023-10-15 23:23:33 +08:00
|
|
|
name: default
|
2023-07-07 02:18:17 +08:00
|
|
|
node:
|
2023-09-29 15:35:25 +08:00
|
|
|
region: cn
|
2020-09-22 15:38:27 +08:00
|
|
|
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
|
2021-09-08 11:26:36 +08:00
|
|
|
pull: if-not-exists
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2023-07-06 21:22:13 +08:00
|
|
|
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
|
2023-07-06 21:22:13 +08:00
|
|
|
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:
|
2023-07-06 21:22:13 +08:00
|
|
|
repo: hkccr.ccs.tencentyun.com/xiaoqidun/goenv
|
|
|
|
registry: hkccr.ccs.tencentyun.com
|
2021-09-08 11:26:36 +08:00
|
|
|
username:
|
2022-02-23 11:06:11 +08:00
|
|
|
from_secret: docker_username
|
2021-09-08 11:26:36 +08:00
|
|
|
password:
|
2022-02-23 11:06:11 +08:00
|
|
|
from_secret: docker_password
|
2023-10-15 23:23:33 +08:00
|
|
|
dockerfile: DockerfileHK
|