.
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is failing Details

This commit is contained in:
Giles Bradshaw 2020-10-22 19:00:25 +01:00
parent 3a9452f6a0
commit df3188e33f
3 changed files with 2 additions and 21 deletions

View File

@ -85,21 +85,13 @@ steps:
- drone_build_number - drone_build_number
- drone_repo_name - drone_repo_name
- drone_repo_namespace - drone_repo_namespace
- postgres_db
- postgres_user
- postgres_password - postgres_password
script: script:
- rm -f env-guacamole - rm -f env-guacamole
- "echo \"export POSTGRES_DB='$${POSTGRES_DB}'\" >> env-guacamole # \"postgres-db\""
- "echo \"export POSTGRES_USER='$${POSTGRES_USER}'\" >> env-guacamole # \"postgres-user\""
- "echo \"export POSTGRES_PASSWORD='$${POSTGRES_PASSWORD}'\" >> env-guacamole # \"postgres-password\"" - "echo \"export POSTGRES_PASSWORD='$${POSTGRES_PASSWORD}'\" >> env-guacamole # \"postgres-password\""
environment: environment:
POSTGRES_DB:
from_secret: postgres-db
POSTGRES_PASSWORD: POSTGRES_PASSWORD:
from_secret: postgres-password from_secret: postgres-password
POSTGRES_USER:
from_secret: postgres-user
- name: scp - name: scp
image: appleboy/drone-scp:1.6.2@sha256:bd37a55f4b97e7742b0de7333669b96220b3cc422d366e1fa8c34059b736ab47 image: appleboy/drone-scp:1.6.2@sha256:bd37a55f4b97e7742b0de7333669b96220b3cc422d366e1fa8c34059b736ab47
@ -138,13 +130,9 @@ steps:
- registry_domain - registry_domain
- registry_port - registry_port
- registry_password - registry_password
- postgres_db
- postgres_user
- postgres_password - postgres_password
script: script:
- export POSTGRES_PASSWORD=$${POSTGRES_PASSWORD} - export POSTGRES_PASSWORD=$${POSTGRES_PASSWORD}
- export POSTGRES_DB=$${POSTGRES_DB}
- export POSTGRES_USER=$${POSTGRES_USER}
- export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN} - export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN}
- export REGISTRY_PORT=$${REGISTRY_PORT} - export REGISTRY_PORT=$${REGISTRY_PORT}
- export REGISTRY_PASSWORD=$${REGISTRY_PASSWORD} - export REGISTRY_PASSWORD=$${REGISTRY_PASSWORD}
@ -154,12 +142,8 @@ steps:
- sh .drone/pull.sh - sh .drone/pull.sh
- sh .drone/deploy.sh - sh .drone/deploy.sh
environment: environment:
POSTGRES_DB:
from_secret: postgres-db
POSTGRES_PASSWORD: POSTGRES_PASSWORD:
from_secret: postgres-password from_secret: postgres-password
POSTGRES_USER:
from_secret: postgres-user
services: services:
- name: docker - name: docker

View File

@ -1,4 +1 @@
[ []
'postgres-db',
'postgres-user',
]

View File

@ -40,7 +40,7 @@ services:
environment: environment:
- POSTGRES_HOSTNAME=guacamole-postgresql - POSTGRES_HOSTNAME=guacamole-postgresql
- POSTGRES_PORT=5432 - POSTGRES_PORT=5432
- POSTGRES_USER=${POSTGRES_USER} - POSTGRES_USER=guacamole_user
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DATABASE=guacamole_db - POSTGRES_DATABASE=guacamole_db
- GUACD_HOSTNAME=guacd - GUACD_HOSTNAME=guacd