dad24c03ff
* outposts: initial cookie domain implementation Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web/admin: add cookie domain setting Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * providers/proxy: replace forward_auth_mode with general mode Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web/admin: rebuild proxy provider form Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * providers/proxy: re-add forward_auth_mode for backwards compat Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web/admin: fix data.mode not being set Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * root: always set log level to debug when testing Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * providers/proxy: use new mode attribute Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * providers/proxy: only ingress /akprox on forward_domain Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * providers/proxy: fix lint error Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web/admin: fix error on ProxyProviderForm when not using proxy mode Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web/admin: fix default for outpost form's type missing Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web/admin: add additional desc for proxy modes Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * outposts: fix service account permissions not always being updated Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * outpost/proxy: fix redirecting to incorrect host for domain mode Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web: improve error handling for network errors Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * outpost: fix image naming not matching main imaeg Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * outposts/proxy: fix redirects for domain mode and traefik Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web: fix colour for paragraphs Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web/flows: fix consent stage not showing permissions correctly Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * website/docs: add domain-level docs Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * website/docs: fix broken links Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * outposts/proxy: remove dead code Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web/flows: fix missing id for #header-text Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
121 lines
3.7 KiB
YAML
121 lines
3.7 KiB
YAML
trigger:
|
|
batch: true
|
|
branches:
|
|
include:
|
|
- master
|
|
- next
|
|
- version-*
|
|
|
|
variables:
|
|
${{ if startsWith(variables['Build.SourceBranch'], 'refs/pull/') }}:
|
|
branchName: ${{ replace(variables['System.PullRequest.SourceBranch'], '/', '-') }}
|
|
${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/') }}:
|
|
branchName: ${{ replace(variables['Build.SourceBranchName'], 'refs/heads/', '') }}
|
|
|
|
stages:
|
|
- stage: generate
|
|
jobs:
|
|
- job: generate_api
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- task: GoTool@0
|
|
inputs:
|
|
version: '1.16.3'
|
|
- task: CmdLine@2
|
|
inputs:
|
|
script: make gen-outpost
|
|
- task: PublishPipelineArtifact@1
|
|
inputs:
|
|
targetPath: 'outpost/api/'
|
|
artifact: 'go_api_client'
|
|
publishLocation: 'pipeline'
|
|
- stage: lint
|
|
jobs:
|
|
- job: golint
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- task: GoTool@0
|
|
inputs:
|
|
version: '1.16.3'
|
|
- task: DownloadPipelineArtifact@2
|
|
inputs:
|
|
buildType: 'current'
|
|
artifactName: 'go_api_client'
|
|
path: "outpost/api/"
|
|
- task: CmdLine@2
|
|
inputs:
|
|
script: |
|
|
docker run \
|
|
--rm \
|
|
-v $(pwd):/app \
|
|
-w /app \
|
|
golangci/golangci-lint:v1.39.0 \
|
|
golangci-lint run -v --timeout 200s
|
|
workingDirectory: 'outpost/'
|
|
- stage: build_docker
|
|
jobs:
|
|
- job: proxy_build_docker
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- task: GoTool@0
|
|
inputs:
|
|
version: '1.16.3'
|
|
- task: Bash@3
|
|
inputs:
|
|
targetType: 'inline'
|
|
script: |
|
|
python ./scripts/az_do_set_branch.py
|
|
- task: Docker@2
|
|
inputs:
|
|
containerRegistry: 'beryjuorg-harbor'
|
|
repository: 'authentik/outpost-proxy'
|
|
command: 'build'
|
|
Dockerfile: 'outpost/proxy.Dockerfile'
|
|
buildContext: '$(Build.SourcesDirectory)'
|
|
tags: |
|
|
gh-$(branchName)
|
|
gh-$(branchName)-$(timestamp)
|
|
arguments: '--build-arg GIT_BUILD_HASH=$(Build.SourceVersion)'
|
|
- task: Docker@2
|
|
inputs:
|
|
containerRegistry: 'beryjuorg-harbor'
|
|
repository: 'authentik/outpost-proxy'
|
|
command: 'push'
|
|
tags: |
|
|
gh-$(branchName)
|
|
gh-$(branchName)-$(timestamp)
|
|
- job: ldap_build_docker
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- task: GoTool@0
|
|
inputs:
|
|
version: '1.16.3'
|
|
- task: Bash@3
|
|
inputs:
|
|
targetType: 'inline'
|
|
script: |
|
|
python ./scripts/az_do_set_branch.py
|
|
- task: Docker@2
|
|
inputs:
|
|
containerRegistry: 'beryjuorg-harbor'
|
|
repository: 'authentik/outpost-ldap'
|
|
command: 'build'
|
|
Dockerfile: 'outpost/ldap.Dockerfile'
|
|
buildContext: '$(Build.SourcesDirectory)'
|
|
tags: |
|
|
gh-$(branchName)
|
|
gh-$(branchName)-$(timestamp)
|
|
arguments: '--build-arg GIT_BUILD_HASH=$(Build.SourceVersion)'
|
|
- task: Docker@2
|
|
inputs:
|
|
containerRegistry: 'beryjuorg-harbor'
|
|
repository: 'authentik/outpost-ldap'
|
|
command: 'push'
|
|
tags: |
|
|
gh-$(branchName)
|
|
gh-$(branchName)-$(timestamp)
|