goenv/.drone.yml

60 lines
1.5 KiB
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: goenv
steps:
2020-09-24 01:58:17 +08:00
- name: build
pull: if-not-exists
2022-02-23 11:06:11 +08:00
image: hkccr.ccs.tencentyun.com/xiaoqidun/goenv
commands:
2020-09-24 01:58:17 +08:00
- chmod +x build.sh
- ./build.sh
- name: upload
image: hkccr.ccs.tencentyun.com/xiaoqidun/gocos
settings:
2020-12-24 15:27:58 +08:00
secret_id:
from_secret: cos_secret_id
secret_key:
2020-12-24 15:27:58 +08:00
from_secret: cos_secret_key
bucket_url:
from_secret: cos_bucket_url
source: release/
target: product/goenv
2020-12-24 15:27:58 +08:00
strip_prefix: release/
---
kind: pipeline
type: docker
name: docker
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:
2023-02-14 23:19:42 +08:00
- wget -q -T 180 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
2023-01-10 01:04:23 +08:00
- name: docker1
pull: if-not-exists
image: plugins/docker
settings:
repo: hkccr.ccs.tencentyun.com/xiaoqidun/goenv
registry: hkccr.ccs.tencentyun.com
2023-01-10 01:04:23 +08:00
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile
- name: docker2
pull: if-not-exists
image: plugins/docker
settings:
repo: ccr.ccs.tencentyun.com/xiaoqidun/goenv
registry: ccr.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
dockerfile: Dockerfile