2020-09-24 01:11:18 +08:00
|
|
|
---
|
2020-09-22 15:38:27 +08:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-09-24 01:11:18 +08:00
|
|
|
name: goenv
|
|
|
|
|
|
|
|
steps:
|
2020-09-24 01:58:17 +08:00
|
|
|
- name: build
|
2020-09-24 01:11:18 +08:00
|
|
|
pull: if-not-exists
|
2022-02-23 11:06:11 +08:00
|
|
|
image: hkccr.ccs.tencentyun.com/xiaoqidun/goenv
|
2020-09-24 01:11:18 +08:00
|
|
|
commands:
|
2020-09-24 01:58:17 +08:00
|
|
|
- chmod +x build.sh
|
2020-09-24 01:11:18 +08:00
|
|
|
- ./build.sh
|
|
|
|
- name: upload
|
2021-09-22 09:56:19 +08:00
|
|
|
image: hkccr.ccs.tencentyun.com/xiaoqidun/gocos
|
2020-09-24 01:11:18 +08:00
|
|
|
settings:
|
2020-12-24 15:27:58 +08:00
|
|
|
secret_id:
|
|
|
|
from_secret: cos_secret_id
|
2020-09-24 01:11:18 +08:00
|
|
|
secret_key:
|
2020-12-24 15:27:58 +08:00
|
|
|
from_secret: cos_secret_key
|
|
|
|
bucket_url:
|
|
|
|
from_secret: cos_bucket_url
|
|
|
|
source: release/
|
2020-09-24 01:11:18 +08:00
|
|
|
target: product/goenv
|
2020-12-24 15:27:58 +08:00
|
|
|
strip_prefix: release/
|
2020-09-24 01:11:18 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: docker
|
2020-09-22 15:38:27 +08:00
|
|
|
|
|
|
|
steps:
|
2020-09-22 15:55:02 +08:00
|
|
|
- name: build
|
|
|
|
pull: if-not-exists
|
2020-09-22 15:56:26 +08:00
|
|
|
image: alpine
|
2020-09-22 15:55:02 +08:00
|
|
|
commands:
|
2022-09-22 10:56:40 +08:00
|
|
|
- wget -q -T 180 https://dl.google.com/android/repository/android-ndk-r25b-linux.zip
|
|
|
|
- unzip -q android-ndk-r25b-linux.zip
|
|
|
|
- rm -f android-ndk-r25b-linux.zip
|
2022-02-23 11:06:11 +08:00
|
|
|
- name: docker
|
2021-09-08 11:26:36 +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
|
2021-09-08 11:26:36 +08:00
|
|
|
password:
|
2022-02-23 11:06:11 +08:00
|
|
|
from_secret: docker_password
|
2020-09-22 15:38:27 +08:00
|
|
|
dockerfile: Dockerfile
|