.
This commit is contained in:
parent
cb96b60aa2
commit
156bd2fad3
|
@ -48,6 +48,9 @@ local defs = [
|
||||||
},
|
},
|
||||||
save(config)(
|
save(config)(
|
||||||
defs,
|
defs,
|
||||||
|
[
|
||||||
|
'guacamole-postgresql',
|
||||||
|
],
|
||||||
) {
|
) {
|
||||||
trigger +: {
|
trigger +: {
|
||||||
event +: [
|
event +: [
|
||||||
|
|
|
@ -112,8 +112,9 @@ steps:
|
||||||
- drone_repo_name
|
- drone_repo_name
|
||||||
- drone_repo_namespace
|
- drone_repo_namespace
|
||||||
script:
|
script:
|
||||||
- mkdir -p /stack/.images/guacamole
|
- mkdir -p /stack/.images/guacamole/built
|
||||||
- rm -f /stack/.images/guacamole/*.*
|
- rm -f /stack/.images/guacamole/*.*
|
||||||
|
- rm -f /stack/.images/guacamole/built/*.*
|
||||||
|
|
||||||
- name: postgres:12.4
|
- name: postgres:12.4
|
||||||
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
||||||
|
@ -172,6 +173,25 @@ steps:
|
||||||
- echo "docker load guacamole_guacamole:1.2.0.tar" >> /stack/.images/guacamole/load.sh
|
- echo "docker load guacamole_guacamole:1.2.0.tar" >> /stack/.images/guacamole/load.sh
|
||||||
- echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/guacamole/guacamole/guacamole:1.2.0 /stack/DOLLAR1/guacamole/guacamole:1.2.0" >> /stack/.images/guacamole/load.sh
|
- echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/guacamole/guacamole/guacamole:1.2.0 /stack/DOLLAR1/guacamole/guacamole:1.2.0" >> /stack/.images/guacamole/load.sh
|
||||||
|
|
||||||
|
- name: guacamole-postgresql
|
||||||
|
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
||||||
|
settings:
|
||||||
|
envs:
|
||||||
|
- drone_tag
|
||||||
|
- drone_commit
|
||||||
|
- drone_build_number
|
||||||
|
- drone_repo_name
|
||||||
|
- drone_repo_namespace
|
||||||
|
- registry_domain
|
||||||
|
- registry_port
|
||||||
|
- registry_password
|
||||||
|
script:
|
||||||
|
- "n=0\nwhile :\ndo\n docker login $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ --username client --password \"$${REGISTRY_PASSWORD}\" \\\\\n && break # substitute your command here\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"login failed\"\n exit 1\n fi\n echo \"retrying login..$n\"\n sleep 5\ndone\n"
|
||||||
|
- docker pull $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/guacamole/guacamole-postgresql
|
||||||
|
- docker save $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/guacamole/guacamole-postgresql -o /stack/.images/guacamole/built/guacamole-postgresql.tar
|
||||||
|
- echo "docker load guacamole-postgresql.tar" >> /stack/.images/guacamole/built/load.sh
|
||||||
|
- echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/guacamole/guacamole-postgresql /stack/DOLLAR1/guacamole-postgresql" >> /stack/.images/guacamole/built/load.sh
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- promote
|
- promote
|
||||||
|
|
Loading…
Reference in New Issue