.
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
45bb3359cf
commit
6d62ce0623
|
@ -49,6 +49,24 @@ steps:
|
|||
commands:
|
||||
- cd letsencrypt-nginx
|
||||
- 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
|
||||
when:
|
||||
branch:
|
||||
|
@ -66,7 +84,7 @@ steps:
|
|||
port:
|
||||
from_secret: ssh-port
|
||||
command_timeout: 2m
|
||||
target: ~/gitea-drone-stack-deploy
|
||||
target: ~/stack-deploy
|
||||
source:
|
||||
- .
|
||||
- name: deploy
|
||||
|
@ -118,7 +136,7 @@ steps:
|
|||
- export CERTBOT_EMAIL=$CERTBOT_EMAIL
|
||||
- export GIT_DOMAIN=$GIT_DOMAIN
|
||||
- docker network prune -f
|
||||
- cd ~/gitea-drone-stack-deploy
|
||||
- cd ~/stack-deploy
|
||||
- docker stack rm gitea
|
||||
- sleep 60
|
||||
- docker stack deploy -c docker-compose-do.yml gitea
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
ARG 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
|
Reference in New Issue