* 🌟Synchronization of the user with LDAP (#206) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish-ldap-sync | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "tdrive/backend/utils/ldap-sync/**" | |
- "tdrive/docker/**" | |
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 }}" |