Setup CI
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-10-27 09:37:36 +01:00
parent 3947537018
commit bcb59237fc
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 28 additions and 1 deletions

27
.drone.yml Normal file
View File

@ -0,0 +1,27 @@
---
kind: pipeline
name: deploy to swarm-test.autonomic.zone
steps:
- name: deployment
image: decentral1se/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: traefik-forward-auth
generate_secrets: true
purge: true
deploy_key:
from_secret: drone_ssh_swarm_test
environment:
DOMAIN: traefik-forward-auth.swarm-test.autonomic.zone
STACK_NAME: traefik-forward-auth
LETS_ENCRYPT_ENV: production
COOKIE_DOMAIN: swarm-test.autonomic.zone
AUTH_HOST: auth-test.autonomic.zone
OIDC_ISSUER_URL: https://id-test.autonomic.zone/auth/realms/test
OIDC_CLIENT_ID: traefik-forward-auth
FORWARD_INI_VERSION: v1
SERCRET_NONCE_VERSION: v1
OIDC_CLIENT_SECRET_VERSION: v1
trigger:
branch:
- master

View File

@ -24,7 +24,7 @@ services:
- "traefik.http.services.tfa.loadBalancer.server.port=4181"
- "traefik.http.routers.tfa.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.tfa.entrypoints=web-secure"
- "traefik.http.routers.tfa.tls.certresolver=production"
- "traefik.http.routers.tfa.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.tfa.middlewares=keycloak@file"
networks: