🌟 Synchronization of the user with LDAP (#185)

* 🌟Synchronization of the user with LDAP
This commit is contained in:
Anton Shepilov
2023-09-06 18:47:54 +02:00
committed by GitHub
parent 666f51efb0
commit b149882c34
8 changed files with 201 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
name: ldap-sync-build
on:
pull_request:
branches: [main]
paths:
- "tdrive/backend/utils/**"
jobs:
ldap-sync-build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build ldap sync
run: cd tdrive/backend/utils/ldap-sync && npm i && npm run build
+31
View File
@@ -0,0 +1,31 @@
name: publish-ldap-sync
on:
pull_request:
branches: [main]
paths:
- "tdrive/utils/ldap-sync/**"
jobs:
publish-node:
runs-on: ubuntu-20.04
steps:
- name: Set env to production
if: endsWith(github.ref, '/main')
run: 'echo "DOCKERTAG=latest" >> $GITHUB_ENV'
- name: "Push to the registry following labels:"
run: |
echo "${{ env.DOCKERTAG }},${{ env.DOCKERTAGVERSION }}"
- uses: actions/checkout@v2
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: tdrive/tdrive-ldap-sync
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
workdir: tdrive
registry: docker-registry.linagora.com
context: .
target: production
buildoptions: "-t docker-registry.linagora.com/tdrive/tdrive-ldap-sync -f docker/tdrive-ldap-sync/Dockerfile"
tags: "${{ env.DOCKERTAG }},${{ env.DOCKERTAGVERSION }}"