hyperfk8s/.drone.yml

33 lines
817 B
YAML
Executable File

kind: pipeline # 定义一个管道
type: docker # 当前管道的类型
name: test # 当前管道的名称
steps:
- name: build
image: composer:latest
commands:
- ls
- composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
- composer install -v
- name: deploy-push-images
depends_on:
- build
image: plugins/docker
pull: if-not-exists
settings:
repo: registry.cn-shanghai.aliyuncs.com/gong92-socl/hy-test-k8s
registry: registry.cn-shanghai.aliyuncs.com
insecure: true
username:
from_secret: aliyun_docker_name
password:
from_secret: aliyun_docker_password
dockerfile: docker/Dockerfile
trigger:
# branch:
# - develop
event:
# - tag
- push