mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	Merge branch 'main' into main
This commit is contained in:
		
						commit
						1f6d678764
					
				@ -16,6 +16,11 @@ app/pkg/*
 | 
				
			|||||||
Dockerfile
 | 
					Dockerfile
 | 
				
			||||||
.dockerignore
 | 
					.dockerignore
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Don't track docs
 | 
				
			||||||
 | 
					README.md
 | 
				
			||||||
 | 
					LICENSE
 | 
				
			||||||
 | 
					docs/*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Various config files that shouldn't be tracked
 | 
					# Various config files that shouldn't be tracked
 | 
				
			||||||
lldap_config.toml
 | 
					lldap_config.toml
 | 
				
			||||||
server_key
 | 
					server_key
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										10
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					# Set update schedule for GitHub Actions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					version: 2
 | 
				
			||||||
 | 
					updates:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  - package-ecosystem: "github-actions"
 | 
				
			||||||
 | 
					    directory: "/"
 | 
				
			||||||
 | 
					    schedule:
 | 
				
			||||||
 | 
					      # Check for updates to GitHub Actions every weekday
 | 
				
			||||||
 | 
					      interval: "daily"
 | 
				
			||||||
							
								
								
									
										27
									
								
								.github/workflows/docker.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										27
									
								
								.github/workflows/docker.yml
									
									
									
									
										vendored
									
									
								
							@ -1,11 +1,12 @@
 | 
				
			|||||||
name: ci
 | 
					name: docker
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    branches:
 | 
					    branches:
 | 
				
			||||||
      - 'main'
 | 
					      - 'main'
 | 
				
			||||||
    tags:
 | 
					  release:
 | 
				
			||||||
      - 'v*.*.*'
 | 
					    types:
 | 
				
			||||||
 | 
					      - 'published'
 | 
				
			||||||
  pull_request:
 | 
					  pull_request:
 | 
				
			||||||
    branches:
 | 
					    branches:
 | 
				
			||||||
      - 'main'
 | 
					      - 'main'
 | 
				
			||||||
@ -43,8 +44,14 @@ jobs:
 | 
				
			|||||||
        with:
 | 
					        with:
 | 
				
			||||||
          username: ${{ secrets.DOCKERHUB_USERNAME }}
 | 
					          username: ${{ secrets.DOCKERHUB_USERNAME }}
 | 
				
			||||||
          password: ${{ secrets.DOCKERHUB_TOKEN }}
 | 
					          password: ${{ secrets.DOCKERHUB_TOKEN }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # Parse the tag into semver.
 | 
				
			||||||
 | 
					      - uses: gacts/github-slug@v1
 | 
				
			||||||
 | 
					        id: slug
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      -
 | 
					      -
 | 
				
			||||||
        name: Build and push
 | 
					        name: Build and push
 | 
				
			||||||
 | 
					        if: github.event_name != 'release'
 | 
				
			||||||
        uses: docker/build-push-action@v2
 | 
					        uses: docker/build-push-action@v2
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          context: .
 | 
					          context: .
 | 
				
			||||||
@ -53,6 +60,20 @@ jobs:
 | 
				
			|||||||
          tags: nitnelave/lldap:latest
 | 
					          tags: nitnelave/lldap:latest
 | 
				
			||||||
          cache-from: type=gha
 | 
					          cache-from: type=gha
 | 
				
			||||||
          cache-to: type=gha,mode=max
 | 
					          cache-to: type=gha,mode=max
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      -
 | 
				
			||||||
 | 
					        name: Build and push
 | 
				
			||||||
 | 
					        if: github.event_name == 'release'
 | 
				
			||||||
 | 
					        uses: docker/build-push-action@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          context: .
 | 
				
			||||||
 | 
					          push: true
 | 
				
			||||||
 | 
					          platforms: linux/amd64
 | 
				
			||||||
 | 
					          # Tag as latest, stable, semver, major, major.minor and major.minor.patch.
 | 
				
			||||||
 | 
					          tags: nitnelave/lldap:latest, nitnelave/lldap:stable, nitnelave/lldap:v${{ steps.slug.outputs.version-semantic }}, nitnelave/lldap:v${{ steps.slug.outputs.version-major }}, nitnelave/lldap:v${{ steps.slug.outputs.version-major }}.${{ steps.slug.outputs.version-minor }}, nitnelave/lldap:v${{ steps.slug.outputs.version-major }}.${{ steps.slug.outputs.version-minor }}.${{ steps.slug.outputs.version-patch }}
 | 
				
			||||||
 | 
					          cache-from: type=gha
 | 
				
			||||||
 | 
					          cache-to: type=gha,mode=max
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      -
 | 
					      -
 | 
				
			||||||
        name: Update repo description
 | 
					        name: Update repo description
 | 
				
			||||||
        if: github.event_name != 'pull_request'
 | 
					        if: github.event_name != 'pull_request'
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										25
									
								
								.github/workflows/rust.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/rust.yml
									
									
									
									
										vendored
									
									
								
							@ -10,8 +10,25 @@ env:
 | 
				
			|||||||
  CARGO_TERM_COLOR: always
 | 
					  CARGO_TERM_COLOR: always
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
 | 
					  pre_job:
 | 
				
			||||||
 | 
					    # continue-on-error: true # Uncomment once integration is finished
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    # Map a step output to a job output
 | 
				
			||||||
 | 
					    outputs:
 | 
				
			||||||
 | 
					      should_skip: ${{ steps.skip_check.outputs.should_skip }}
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - id: skip_check
 | 
				
			||||||
 | 
					        uses: fkirc/skip-duplicate-actions@master
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          # All of these options are optional, so you can remove them if you are happy with the defaults
 | 
				
			||||||
 | 
					          concurrent_skipping: 'never'
 | 
				
			||||||
 | 
					          skip_after_successful_duplicate: 'true'
 | 
				
			||||||
 | 
					          paths_ignore: '["**/README.md", "**/docs/**"]'
 | 
				
			||||||
 | 
					          do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
 | 
				
			||||||
  test:
 | 
					  test:
 | 
				
			||||||
    name: cargo test
 | 
					    name: cargo test
 | 
				
			||||||
 | 
					    needs: pre_job
 | 
				
			||||||
 | 
					    if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
@ -30,6 +47,8 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  clippy:
 | 
					  clippy:
 | 
				
			||||||
    name: cargo clippy
 | 
					    name: cargo clippy
 | 
				
			||||||
 | 
					    needs: pre_job
 | 
				
			||||||
 | 
					    if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout sources
 | 
					      - name: Checkout sources
 | 
				
			||||||
@ -53,6 +72,8 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  format:
 | 
					  format:
 | 
				
			||||||
    name: cargo fmt
 | 
					    name: cargo fmt
 | 
				
			||||||
 | 
					    needs: pre_job
 | 
				
			||||||
 | 
					    if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout sources
 | 
					      - name: Checkout sources
 | 
				
			||||||
@ -76,6 +97,8 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  coverage:
 | 
					  coverage:
 | 
				
			||||||
    name: Code coverage
 | 
					    name: Code coverage
 | 
				
			||||||
 | 
					    needs: pre_job
 | 
				
			||||||
 | 
					    if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout sources
 | 
					      - name: Checkout sources
 | 
				
			||||||
@ -96,7 +119,7 @@ jobs:
 | 
				
			|||||||
      - name: Aggregate reports
 | 
					      - name: Aggregate reports
 | 
				
			||||||
        run: cargo llvm-cov --no-run --lcov --output-path lcov.info
 | 
					        run: cargo llvm-cov --no-run --lcov --output-path lcov.info
 | 
				
			||||||
      - name: Upload coverage to Codecov
 | 
					      - name: Upload coverage to Codecov
 | 
				
			||||||
        uses: codecov/codecov-action@v1
 | 
					        uses: codecov/codecov-action@v2.1.0
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          files: lcov.info
 | 
					          files: lcov.info
 | 
				
			||||||
          fail_ci_if_error: true
 | 
					          fail_ci_if_error: true
 | 
				
			||||||
 | 
				
			|||||||
@ -82,7 +82,7 @@ volumes:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  lldap:
 | 
					  lldap:
 | 
				
			||||||
    image: nitnelave/lldap
 | 
					    image: nitnelave/lldap:stable
 | 
				
			||||||
    # Change this to the user:group you want.
 | 
					    # Change this to the user:group you want.
 | 
				
			||||||
    user: "33:33"
 | 
					    user: "33:33"
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
[package]
 | 
					[package]
 | 
				
			||||||
name = "lldap_app"
 | 
					name = "lldap_app"
 | 
				
			||||||
version = "0.2.0"
 | 
					version = "0.3.0-alpha.1"
 | 
				
			||||||
authors = ["Valentin Tolmer <valentin@tolmer.fr>", "Steve Barrau <steve.barrau@gmail.com>", "Thomas Wickham <mackwic@gmail.com>"]
 | 
					authors = ["Valentin Tolmer <valentin@tolmer.fr>"]
 | 
				
			||||||
edition = "2021"
 | 
					edition = "2021"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[dependencies]
 | 
					[dependencies]
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
[package]
 | 
					[package]
 | 
				
			||||||
name = "lldap_auth"
 | 
					name = "lldap_auth"
 | 
				
			||||||
version = "0.2.0"
 | 
					version = "0.3.0-alpha.1"
 | 
				
			||||||
authors = ["Valentin Tolmer <valentin@tolmer.fr>", "Steve Barrau <steve.barrau@gmail.com>", "Thomas Wickham <mackwic@gmail.com>"]
 | 
					authors = ["Valentin Tolmer <valentin@tolmer.fr>"]
 | 
				
			||||||
edition = "2021"
 | 
					edition = "2021"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[features]
 | 
					[features]
 | 
				
			||||||
 | 
				
			|||||||
@ -1,8 +1,8 @@
 | 
				
			|||||||
[package]
 | 
					[package]
 | 
				
			||||||
authors = ["Valentin Tolmer <valentin@tolmer.fr>", "Steve Barrau <steve.barrau@gmail.com>", "Thomas Wickham <mackwic@gmail.com>"]
 | 
					authors = ["Valentin Tolmer <valentin@tolmer.fr>"]
 | 
				
			||||||
edition = "2021"
 | 
					edition = "2021"
 | 
				
			||||||
name = "lldap"
 | 
					name = "lldap"
 | 
				
			||||||
version = "0.2.0"
 | 
					version = "0.3.0-alpha.1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[dependencies]
 | 
					[dependencies]
 | 
				
			||||||
actix = "0.12"
 | 
					actix = "0.12"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user