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
|
|
|
|
image: xiaoqidun/goenv
|
|
|
|
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
|
|
|
|
pull: if-not-exists
|
|
|
|
image: plugins/s3
|
|
|
|
settings:
|
|
|
|
bucket:
|
|
|
|
from_secret: minio_bucket
|
|
|
|
access_key:
|
|
|
|
from_secret: minio_access_key
|
|
|
|
secret_key:
|
|
|
|
from_secret: minio_secret_key
|
|
|
|
source: release/*
|
|
|
|
strip_prefix: release/
|
|
|
|
target: product/goenv
|
|
|
|
path_style: true
|
|
|
|
endpoint: https://minio.aite.xyz
|
|
|
|
|
|
|
|
---
|
|
|
|
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:
|
|
|
|
- wget -q -T 180 https://dl.google.com/android/repository/android-ndk-r21b-linux-x86_64.zip
|
|
|
|
- unzip -q android-ndk-r21b-linux-x86_64.zip
|
2020-09-22 15:38:27 +08:00
|
|
|
- name: docker
|
|
|
|
pull: if-not-exists
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
repo: xiaoqidun/goenv
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
dockerfile: Dockerfile
|