.
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Giles Bradshaw 2020-04-03 10:07:02 +01:00
parent 45bb3359cf
commit 6d62ce0623
2 changed files with 21 additions and 3 deletions

View File

@ -49,6 +49,24 @@ steps:
commands: commands:
- cd letsencrypt-nginx - cd letsencrypt-nginx
- sh build.sh do $${LOCAL_DOCKER_REGISTRY} - sh build.sh do $${LOCAL_DOCKER_REGISTRY}
- name: deploy
when:
branch:
- do
image: appleboy/drone-ssh
settings:
host:
from_secret: ssh-host
username:
from_secret: ssh-user
key:
from_secret: ssh-key
passphrase:
from_secret: ssh-passphrase
port:
from_secret: ssh-port
script:
- rm -r ~/stack-deploy
- name: scp files - name: scp files
when: when:
branch: branch:
@ -66,7 +84,7 @@ steps:
port: port:
from_secret: ssh-port from_secret: ssh-port
command_timeout: 2m command_timeout: 2m
target: ~/gitea-drone-stack-deploy target: ~/stack-deploy
source: source:
- . - .
- name: deploy - name: deploy
@ -118,7 +136,7 @@ steps:
- export CERTBOT_EMAIL=$CERTBOT_EMAIL - export CERTBOT_EMAIL=$CERTBOT_EMAIL
- export GIT_DOMAIN=$GIT_DOMAIN - export GIT_DOMAIN=$GIT_DOMAIN
- docker network prune -f - docker network prune -f
- cd ~/gitea-drone-stack-deploy - cd ~/stack-deploy
- docker stack rm gitea - docker stack rm gitea
- sleep 60 - sleep 60
- docker stack deploy -c docker-compose-do.yml gitea - docker stack deploy -c docker-compose-do.yml gitea

View File

@ -1,3 +1,3 @@
ARG image ARG image
FROM $image FROM $image
COPY ./conf/git.conf /etc/nginx/user.conf.d/server._conf COPY ./conf/do.conf /etc/nginx/user.conf.d/server._conf