switch to exec pipeline for CI
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
372513cfdd
commit
3386009590
19
.drone.yml
19
.drone.yml
@ -1,34 +1,25 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
type: exec
|
||||
name: main
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- name: docker-socket
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- docker build -t registry.jfmonty2.com/minebot:latest .
|
||||
|
||||
- name: deploy
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- name: docker-socket
|
||||
path: /var/run/docker.sock
|
||||
environment:
|
||||
REGISTRY_PWD:
|
||||
from_secret: registry_pwd
|
||||
commands:
|
||||
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.jfmonty2.com
|
||||
- docker push registry.jfmonty2.com/minebot:latest
|
||||
|
||||
volumes:
|
||||
- name: docker-socket
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
Loading…
x
Reference in New Issue
Block a user