fix: rm stack
This commit is contained in:
parent
8233fe28be
commit
581abb7746
|
@ -111,8 +111,8 @@ local util = import 'lib/util.libsonnet';
|
||||||
//'openssl genrsa -out CA_key.pem 2048',
|
//'openssl genrsa -out CA_key.pem 2048',
|
||||||
//'openssl req -x509 -days 600 -new -nodes -key CA_key.pem -out CA_crt.pem -extensions v3_ca -config openssl.cnf -subj "/C=US/ST=California/L=Mountain View/O=Google/OU=Enterprise/CN=MyCA"',
|
//'openssl req -x509 -days 600 -new -nodes -key CA_key.pem -out CA_crt.pem -extensions v3_ca -config openssl.cnf -subj "/C=US/ST=California/L=Mountain View/O=Google/OU=Enterprise/CN=MyCA"',
|
||||||
//'cd ..',
|
//'cd ..',
|
||||||
//"docker stack rm squid",
|
"docker stack rm squid",
|
||||||
//"sleep 60",
|
"sleep 60",
|
||||||
// "docker volume rm squid_squid-cache",
|
// "docker volume rm squid_squid-cache",
|
||||||
"docker stack deploy -c docker-compose.yml squid",
|
"docker stack deploy -c docker-compose.yml squid",
|
||||||
]
|
]
|
||||||
|
|
|
@ -117,6 +117,8 @@ steps:
|
||||||
- echo "$${CA_KEY}" > /stack/squid/.secrets/ca.key
|
- echo "$${CA_KEY}" > /stack/squid/.secrets/ca.key
|
||||||
- set -e
|
- set -e
|
||||||
- cd /stack/squid
|
- cd /stack/squid
|
||||||
|
- docker stack rm squid
|
||||||
|
- sleep 60
|
||||||
- docker stack deploy -c docker-compose.yml squid
|
- docker stack deploy -c docker-compose.yml squid
|
||||||
username:
|
username:
|
||||||
from_secret: ssh-user
|
from_secret: ssh-user
|
||||||
|
|
Loading…
Reference in New Issue