1. 03 Jan, 2019 5 commits
    • Thong Kuah's avatar
      DRY up some functions in Auto-DevOps script · df6354b8
      Thong Kuah authored
      - DRY up setting deploy name
      
      - DRY up application_secret_name
      df6354b8
    • Thong Kuah's avatar
      1d41e587
    • Thong Kuah's avatar
      Simplify bash function · 23b6a2ae
      Thong Kuah authored
      Use --from-env-file with bash process substitution
      
      We still need bash as process substition (`<()`) is not available in sh
      23b6a2ae
    • Thong Kuah's avatar
      Solve multi word CI variables not quoted properly · dddbc353
      Thong Kuah authored
      ie. fix below quoting issue:
      
      ```
      kubectl create secret -n project-with-autodevops-900057eb1ce34399-77 \
        generic production-secret \
        '--from-literal=OPTIONAL_MESSAGE=You' can see this secret \
        -o yaml --dry-run
      ```
      
      With fix, it should be generating:
      
      ```
      kubectl create secret -n project-with-autodevops-900057eb1ce34399-77 \
        generic production-secret \
        --from-literal 'OPTIONAL_MESSAGE=You can see this secret' \
        -o yaml --dry-run
      ```
      
      Call via bash -c, instead of assuming bash
      
      The shell is /bin/sh, so we cannot asssume bash. Hence we use `bash -c`
      
      bash is installed for deploy jobs in a prior step
      dddbc353
    • Thong Kuah's avatar
      Create K8S_SECRET_* CI variables as a K8s Secret · 4b92b550
      Thong Kuah authored
      Find any CI variables from `env` which has a prefix. If there are any
      such CI variables, strip prefix from variable name then create a generic
      Kubernetes secret containing all these CI variables as key-value pairs.
      
      Also, Pass in secretname to application container
      
      The secretname may be present, if nil, the chart does nothing. If
      present, the chart will load the key-value pairs from the secret into
      the application container. See
      https://gitlab.com/charts/auto-deploy-app/blob/master/README.md#configuration
      4b92b550
  2. 17 Dec, 2018 1 commit
  3. 10 Dec, 2018 1 commit
  4. 04 Dec, 2018 1 commit
  5. 02 Dec, 2018 1 commit
  6. 19 Nov, 2018 1 commit
  7. 13 Nov, 2018 1 commit
  8. 10 Nov, 2018 1 commit
  9. 09 Nov, 2018 2 commits
    • Thong Kuah's avatar
      Use except:variables to fix multiple variable jobs · 1e367810
      Thong Kuah authored
      As `only:variables` has the effect of being satisfied by any one of
      variable expression - this will create a situation where e.g. the dast
      job will be active even if there's no cluster.
      
      So use `except:variables which requires each and every variable
      expression to be satisfied.
      1e367810
    • Thong Kuah's avatar
      Switch kubernetes:active with checking $KUBECONFIG · f44b7ac6
      Thong Kuah authored
      We have found an issue with `kubernetes:active` where it doesn't work
      with multiple clusters. Switch with the similar $KUBECONFIG variable
      check but this check actually gets the variable from the cluster
      matching the environment name.
      
      Fixes gitlab-ee#8311
      f44b7ac6
  10. 04 Nov, 2018 1 commit
  11. 03 Nov, 2018 1 commit
  12. 01 Nov, 2018 1 commit
  13. 29 Oct, 2018 1 commit
  14. 12 Oct, 2018 1 commit
  15. 05 Oct, 2018 1 commit
    • Alessio Caiazza's avatar
      Add timed incremental rollout to Auto DevOps · 94fc0619
      Alessio Caiazza authored
      Auto DevOps deployment strategies now supports timed incremental
      rollout. We are deprecating the usage of INCREMENTAL_ROLLOUT_ENABLED
      environment variable in Auto DevOps template.
      
      The new behavior will be driven by the INCREMENTAL_ROLLOUT_MODE variable
      that can either be manual (same as INCREMENTAL_ROLLOUT_ENABLED) or
      timed.
      
      Rollout deployments will be executed using a 5 minute delay between each
      job.
      94fc0619
  16. 04 Oct, 2018 2 commits
  17. 02 Oct, 2018 1 commit
  18. 27 Sep, 2018 4 commits
  19. 26 Sep, 2018 1 commit
  20. 17 Sep, 2018 1 commit
  21. 13 Sep, 2018 2 commits
  22. 10 Sep, 2018 1 commit
  23. 30 Aug, 2018 1 commit
  24. 14 Aug, 2018 2 commits
  25. 13 Aug, 2018 1 commit
  26. 18 Jul, 2018 1 commit
  27. 09 Jul, 2018 1 commit
  28. 06 Jun, 2018 1 commit
  29. 04 Jun, 2018 1 commit