You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
915 B

3 years ago
kind: pipeline
type: docker
name: build
steps:
- name: build
image: plugins/docker
settings:
3 years ago
registry: cr.selcloud.ru
3 years ago
username:
from_secret: docker_username
password:
from_secret: docker_password
3 years ago
repo: cr.selcloud.ru/russia9/${DRONE_REPO_NAME}/${DRONE_COMMIT_BRANCH}
3 years ago
tags:
- latest
- ${DRONE_COMMIT_SHA}
cache_from:
3 years ago
- cr.selcloud.ru/russia9/${DRONE_REPO_NAME}/${DRONE_COMMIT_BRANCH}:latest
3 years ago
3 years ago
- name: deploy
image: appleboy/drone-ssh
settings:
host:
from_secret: ssh_address
username:
from_secret: ssh_username
key:
from_secret: ssh_key
port: 22
script_stop: true
script:
- docker-compose -f /srv/chatwars-offers/docker-compose.yml pull
- docker-compose -f /srv/chatwars-offers/docker-compose.yml up -d
when:
branch:
- master