UserPointManagement/.drone.yml

24 lines
664 B
YAML

kind: pipeline
type: docker
name: deployment
steps:
- name: check
image: alpine
commands:
- ls -la
- ls -la Dockerfile --查看当前文件夹是否包含了Dockerfile
- name: publish
image: plugins/docker
settings:
dockerfile: Dockerfile
tags: latest
# you need insecure: true since we don't have a TLS certificate
insecure: true
registry: 192.168.31.104:8082
repo: 192.168.31.104:8082/tiamo/user-point-management
# create the docker_username and docker_password secrets in Drone, with Nexus' username & password
secrets: [ drone, dronepw ]
#trigger:
# branch:
# - master