frostfs-testcases/.drone.yml
Anatoly Bogatyrev 029693653e Merged in features/neo-rpc (pull request #2)
Object user scenarios and DevEnv integration

* Object user scenarios and DevEnv integration.
2020-07-01 02:28:31 +00:00

38 lines
845 B
YAML

---
kind: pipeline
type: docker
name: robot-image
steps:
- name: cleanup and build
image: docker:19.03.11-dind
environment:
IMG_NAME: 'registry.nspcc.ru/docker-local/robot'
REG_USR: 'admin'
REG_PWD:
from_secret: docker_passwd
JF_TOKEN:
from_secret: api_key
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- ./images_cleanup.sh
- docker build --no-cache -t $IMG_NAME:latest ./
- docker login registry.nspcc.ru -u admin -p "$REG_PWD"
- docker push $IMG_NAME:latest
trigger:
branch:
- master
event:
- push
- pull_request
# host volume mount requires a repository to be `trusted`
# in drone; this option enables in repository settings
# by admin user
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock