This commit is contained in:
Silver Ghost 2022-11-16 10:01:00 +03:00
parent f112d3df6c
commit 3ce6ec1362
No known key found for this signature in database

View File

@ -29,86 +29,72 @@ volumes:
- name: cache - name: cache
host: host:
path: /opt/docker/drone/cache path: /opt/docker/drone/cache
# ---
# kind: pipeline
# type: docker
# name: build
# steps: ---
# - name: build kind: pipeline
# image: docker type: docker
# commands: name: build
# - docker build -t registry.dntsk.dev/audiobooks:${DRONE_BRANCH} .
# - docker push registry.dntsk.dev/audiobooks:${DRONE_BRANCH}
# volumes:
# - name: cache
# path: /root/.cache/pip
# - name: docker_sock
# path: /var/run/docker.sock
# - name: docker_config
# path: /root/.docker
# volumes: steps:
# - name: cache - name: build
# host: image: docker
# path: /opt/docker/drone/cache commands:
# - name: docker_sock - docker build -t dntsk/later42:${DRONE_BRANCH} .
# host: - docker tag dntsk/later42:${DRONE_BRANCH} dntsk/later42:latest
# path: /var/run/docker.sock - docker push dntsk/later42:${DRONE_BRANCH}
# - name: docker_config volumes:
# host: - name: cache
# path: /root/.docker path: /root/.cache/pip
- name: docker_sock
path: /var/run/docker.sock
- name: docker_config
path: /root/.docker
# trigger: volumes:
# branch: - name: cache
# - master host:
# - staging path: /opt/docker/drone/cache
- name: docker_sock
host:
path: /var/run/docker.sock
- name: docker_config
host:
path: /root/.docker
# depends_on: trigger:
# - test branch:
- master
# --- depends_on:
# kind: pipeline - test
# type: docker
# name: deploy
# steps: ---
# - name: deploy_staging kind: pipeline
# image: appleboy/drone-ssh type: docker
# settings: name: deploy
# host:
# from_secret: ssh_host
# username:
# from_secret: ssh_username
# key:
# from_secret: ssh_key
# port: 22
# script:
# - cd /opt
# - docker-compose pull abooks_staging
# - docker-compose up -d abooks_staging
# when:
# branch: staging
# - name: deploy_production
# image: appleboy/drone-ssh
# settings:
# host:
# from_secret: ssh_host
# username:
# from_secret: ssh_username
# key:
# from_secret: ssh_key
# port: 22
# script:
# - cd /opt
# - docker-compose pull abooks_prod
# - docker-compose up -d abooks_prod
# when:
# branch: master
# depends_on: steps:
# - build - name: deploy
image: appleboy/drone-ssh
settings:
host:
from_secret: ssh_host
username:
from_secret: ssh_username
key:
from_secret: ssh_key
port: 22
script:
- cd /opt
- docker-compose pull later42
- docker-compose up -d later42 later42_tasks
trigger:
branch:
- master
depends_on:
- build
# --- # ---
# kind: pipeline # kind: pipeline
# type: docker # type: docker