Skip to content
Snippets Groups Projects
Select Git revision
  • 8836bcaaf862d254cb068f06d8f253b5c17de8a6
  • main default
  • 139-remove-part-of-the-helm-chart-that-is-moved-to-the-dashboard-helmchart
  • 122-admin-logins-should-gain-admin-privileges
  • 116-allow-password-change-without-ssl-public-endpoint-in-startup-job
  • 114-create-development-scripts-for-reverse-proxy-solution
  • 110-enable-hydra-maester
  • 82-pylint-job-broken-2
  • 93-0.2.11
  • master protected
  • update-hydra
  • spike-use-kratos-as-identity-manager
  • merge_master_into_0.2
  • 56-fix-link-in-the-readme
  • 0.2
  • 40-replace-flask-oauth-with-oauthlib-in-test-login_logout
  • 45-update-user-panel-to-fix-jobs
  • 41-make-oauth2-client-data-persistent
  • force-https
  • 42-ldap-support
  • 33-wordpress-sso-admin-login-doesn-t-work
  • 0.8.0
  • 0.7.7
  • 0.7.6
  • 0.7.4
  • 0.7.1
  • 0.5.2
  • 0.5.0
  • 0.4.3
  • 0.4.2
  • 0.4.1
  • 0.4.0
  • 0.2.11
  • 0.2.10
  • 0.2.9
  • 0.2.8
  • 0.2.7
  • 0.2.6
  • 0.2.5
  • 0.2.4
  • 0.2.3
41 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 6.52 KiB
    include:
      - remote: https://open.greenhost.net/stackspin/stackspin/raw/main/.gitlab/ci_templates/kaniko.yml
    
    stages:
      - build
      # TODO: Re-enable after fixing #82
      - lint
      # TODO: Re-enable after fixing #73
      # - application-test
      - integration-test
    
    #login_test:
    #  image: python:3.8
    #  stage: unittest
    #  needs: []
    #  variables:
    #    HYDRA_ADMIN_URL: http://localhost/ignored
    #    KRATOS_PUBLIC_URL: http://localhost/ignored
    #    PUBLIC_URL: http://localhost/ignored
    #  cache:
    #    paths:
    #      - "$CI_PROJECT_DIR/pip-cache"
    #    key: "$CI_PROJECT_ID"
    #    before_script:
    #      - cd login
    #      - python -V
    #      - pip install -r requirements.txt
    #    script:
    #      - pytest -v --cov=login --cov-report=term --cov-report=xml tests
    #    artifacts:
    #      reports:
    #        cobertura: login/coverage.xml
    #    coverage: '/^TOTAL.+?(\d+\%)$/'
    
    
    
    # Stackspin login panel
    login:
      stage: build
      needs: []
      extends: .kaniko_build
      variables:
        KANIKO_CONTEXT: "login"
        KANIKO_BUILD_IMAGENAME: $CI_JOB_NAME
      before_script:
        - ls -l ${CI_PROJECT_DIR}/${KANIKO_CONTEXT:-.}/Dockerfile 
      only:
        changes:
          - login/**/*
    
    
    # For full integration testing we need to build the full stack in CI/CD
    #
    # - postgres    : Backend database, the Dockerfile is based on the upstream
    #                 with a small addition to create inital databases
    # - kratos      : Identity manager, based on the upstream. We set the DSN
    #                 in the Dockerimage, as its different from hydra's DSN, 
    #                 however, gitlab-ci will apply the same enviroment for all
    #                 services.
    # - hydra       : See above, the identiy provider
    # - login       : Our login panel
    # - sso_testapp : A test app which implements OIDC for testing
    # - behave      : Image to do behave testing
    
    # Build our own postgres image, which is based on upstream
    postgres:
      stage: build
      needs: []
      variables:
        KANIKO_CONTEXT: ".gitlab/ci/postgres"