.
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:
|
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
|
||||||
|
|
|
@ -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
|
Reference in New Issue