mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 07:57:04 +03:00
26 lines
632 B
YAML
26 lines
632 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build and push app
|
|
image: docker
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
- name: password
|
|
path: /srv/drone-runner
|
|
commands:
|
|
- cat /srv/drone-runner/my_password.txt | docker login --username o.vodianov --password-stdin registry.myinstalink.ru
|
|
- docker build -t registry.myinstalink.ru/app:latest .
|
|
- docker push registry.myinstalink.ru/app:latest
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
host:
|
|
path: /var/run/docker.sock
|
|
- name: password
|
|
host:
|
|
path: /srv/drone-runner/my_password.txt
|