Skip to content

Commit

Permalink
drone service with access to certificates and key
Browse files Browse the repository at this point in the history
  • Loading branch information
tatankat committed Aug 24, 2022
1 parent 1cd193a commit 540bce8
Showing 1 changed file with 34 additions and 19 deletions.
53 changes: 34 additions & 19 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,37 @@ name: default
clone:

steps:
- name: setup
image: joomlaprojects/docker-images:php7.4
volumes:
- name: certificates
path: /certificates
commands:
- cp -v tests/Codeception/_data/certs/* /certificates/

- name: openldap
image: bitnami/openldap:latest
detach: true
ports:
- 1389
- 1636
volumes:
- name: certificates
path: /certificates
environment:
LDAP_ADMIN_USERNAME=admin
LDAP_ADMIN_PASSWORD=adminpassword
LDAP_USERS=customuser
LDAP_PASSWORDS=custompassword
LDAP_ENABLE_TLS=yes
LDAP_TLS_CERT_FILE=/certificates/ldapcert.crt
LDAP_TLS_KEY_FILE=/certificates/ldapcert.key
LDAP_TLS_CA_FILE=/certificates/CA.crt
BITNAMI_DEBUG=true
LDAP_CONFIG_ADMIN_ENABLED=yes
LDAP_CONFIG_ADMIN_USERNAME=admin
LDAP_CONFIG_ADMIN_PASSWORD=configpassword

- name: composer
image: joomlaprojects/docker-images:php7.4
volumes:
Expand Down Expand Up @@ -361,6 +392,9 @@ volumes:
- name: npm-cache
host:
path: /tmp/npm-cache
- name: certificates
host:
path: /tmp/certificates

services:
- name: mysql
Expand Down Expand Up @@ -389,25 +423,6 @@ services:
POSTGRES_PASSWORD: joomla_ut
POSTGRES_DB: test_joomla

- name: openldap
image: bitnami/openldap:latest
ports:
- 1389
- 1636
environment:
LDAP_ADMIN_USERNAME=admin
LDAP_ADMIN_PASSWORD=adminpassword
LDAP_USERS=customuser
LDAP_PASSWORDS=custompassword
LDAP_ENABLE_TLS=yes
LDAP_TLS_CERT_FILE=/opt/bitnami/certs/ldapcert.crt
LDAP_TLS_KEY_FILE=/opt/bitnami/certs/ldapcert.key
LDAP_TLS_CA_FILE=/opt/bitnami/certs/CA.crt
BITNAMI_DEBUG=true
LDAP_CONFIG_ADMIN_ENABLED=yes
LDAP_CONFIG_ADMIN_USERNAME=admin
LDAP_CONFIG_ADMIN_PASSWORD=configpassword

---
kind: pipeline
name: package
Expand Down

0 comments on commit 540bce8

Please sign in to comment.