Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
baszoetekouw committed Sep 16, 2024
1 parent 6507cc3 commit 53ba30a
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: CI

on:
push:
schedule:
- cron: "0 5 * * mon"
push:
schedule:
- cron: "0 5 * * mon"

permissions: {}
permissions: { }

jobs:
plsc-test:
Expand All @@ -26,9 +26,8 @@ jobs:
image: osixia/openldap:latest
ports:
- 389:389
variables:
LDAP_SEED_INTERNAL_SCHEMA_PATH: "${CI_PROJECT_DIR}/misc/schema"
env:
LDAP_SEED_INTERNAL_SCHEMA_PATH: "${CI_PROJECT_DIR}/misc/schema"
LDAP_DOMAIN: services.sram.tld
LDAP_ADMIN_USERNAME: admin
LDAP_ADMIN_PASSWORD: secret
Expand Down Expand Up @@ -58,10 +57,16 @@ jobs:
flake8 .
- name: ldap - Initialization...
run: |
run: >
sleep 5;
ldapwhoami -H ${LDAP_URL} -D ${LDAP_BIND_DN} -w ${LDAP_ADMIN_PASSWORD};
for f in access eduPerson voPerson groupOfMembers config; do ldapadd -H ${LDAP_URL} -D cn=admin,cn=config -w ${LDAP_CONFIG_PASSWORD} -f etc/ldif/$f.ldif; done;
for f in access eduPerson voPerson groupOfMembers config;
do
ldapadd -H ${LDAP_URL}
-D cn=admin,cn=config
-w ${LDAP_CONFIG_PASSWORD}
-f etc/ldif/$f.ldif;
done;
env:
LDAP_URL: ldap://localhost:389
LDAP_ADMIN_PASSWORD: secret
Expand Down

0 comments on commit 53ba30a

Please sign in to comment.