mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-11-01 03:48:50 +08:00
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: goenv
|
|
|
|
steps:
|
|
- name: build
|
|
pull: if-not-exists
|
|
image: hkccr.ccs.tencentyun.com/xiaoqidun/goenv
|
|
commands:
|
|
- chmod +x build.sh
|
|
- ./build.sh
|
|
- name: upload
|
|
image: hkccr.ccs.tencentyun.com/xiaoqidun/gocos
|
|
settings:
|
|
secret_id:
|
|
from_secret: cos_secret_id
|
|
secret_key:
|
|
from_secret: cos_secret_key
|
|
bucket_url:
|
|
from_secret: cos_bucket_url
|
|
source: release/
|
|
target: product/goenv
|
|
strip_prefix: release/
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: docker
|
|
|
|
steps:
|
|
- name: build
|
|
pull: if-not-exists
|
|
image: alpine
|
|
commands:
|
|
- 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
|
|
- name: docker1
|
|
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: Dockerfile
|
|
- name: docker2
|
|
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: Dockerfile |