mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-11-25 01:16:45 +08:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
node:
|
|
region: cn
|
|
steps:
|
|
- name: build
|
|
pull: if-not-exists
|
|
image: debian
|
|
commands:
|
|
- sed -i "s|deb.debian.org|mirrors.ustc.edu.cn|g" /etc/apt/sources.list.d/debian.sources
|
|
- apt-get update && apt-get install -y wget unzip && rm -rf /var/lib/apt/lists/*
|
|
- wget -q -T 180 -4 https://dl.google.com/android/repository/android-ndk-r26b-linux.zip
|
|
- unzip -q android-ndk-r26b-linux.zip
|
|
- rm -f android-ndk-r26b-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
|