Commit 978a84c7 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

initial commit

parents
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+26 −0
Original line number Diff line number Diff line
/target/
!.mvn/wrapper/maven-wrapper.jar

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/build/
/nbbuild/

/public/
/.npm/
 No newline at end of file

.gitlab-ci.yml

0 → 100644
+59 −0
Original line number Diff line number Diff line
include:
  # MkDocs template
  - project: 'to-be-continuous/mkdocs'
    ref: '1.4.0'
    file: '/templates/gitlab-ci-mkdocs.yml'
  # S3 template
  - project: 'to-be-continuous/s3'
    ref: '1.2.0'
    file: '/templates/gitlab-ci-s3.yml'

variables:
  MKD_SITE_DIR: "public"

  # deploy: landing page (static/), mkdocs build (public/), Angular build (kicker/dist/) and aggregated kicker (kicker-aggregated/)
  S3_DEPLOY_FILES: "static/ public/ kicker/dist/ kicker-aggregated/"
  S3_STAGING_DISABLED: "true"
  S3_PROD_DISABLED: "true"

stages:
  - build
  - deploy
  - production

process-templates:
  image:
    name: "dwdraju/alpine-curl-jq:latest"
    entrypoint: [""]
  stage: .pre
  script:
    - ./process-templates.sh --json-out kicker-aggregated.json --doc-out ./docs
  artifacts:
    name: "aggregated kicker json from $CI_COMMIT_REF_SLUG"
    paths:
      - kicker-aggregated.json
      - mkdocs.yml
      - docs/ref/
  rules:
    # exclude merge requests
    - if: '$CI_MERGE_REQUEST_ID == null'

# publish on GitLab pages: only on master
pages:
  stage: deploy
  script:
    # copy landing page resources
    - cp -rf static/* public
    # copy tracking JavaScript
    - echo "$TRACKING_JS" > public/js/tracking.js
    # copy aggregated kicker descriptor
    - cp -rf kicker-aggregated.json public
    # generate build.info
    - echo -e "Build date= $(date)\nGit Commit Ref= $CI_COMMIT_REF_NAME\nGit Commit SHA= $CI_COMMIT_SHA\n" > public/build.info
  artifacts:
    name: "complete site from $CI_COMMIT_REF_SLUG"
    paths:
      - public
    expire_in: 1 day
  only:
    - master
+53 −0
Original line number Diff line number Diff line
## Describe the bug

(Describe the problem clearly and concisely.)


## Expected behavior

(Describe the expected behavior clearly and concisely.)


## Actual behavior

(Describe the actual behavior clearly and concisely.)


## Logs and/or screenshots

(Join any relevant logs and/or screenshot. Please use code blocks (```) to format console output, logs, and code.)


## Context & Configuration

Link to a project, pipeline or job facing the bug: (please provide one if possible)

The issue was reproduced using:

* Version of the template: (type in the version)
* GitLab server(s): (Was it gitlab.com? A self-managed server? Which version? CE / EE? Which license?)
* GitLab runner(s): (type in any relevant information about the GitLab runner(s) you used)


Here is the `.gitlab-ci.yml` file:

```yaml
# Add your .gitlab-ci.yml here, if applicable and useful.

```

(If useful, list configured GitLab CI project and/or group variables.)

Configured GitLab CI project or group variables:

* `VARIABLE_1`
* `VARIABLE_2`
* ...


(Finally add any possible additional useful context info here.)




/label ~"kind/bug" ~"status/needs-investigation"
+11 −0
Original line number Diff line number Diff line
## Description

(Describe the feature clearly and concisely.)

## Implementation ideas

(If you have any implementation ideas, they can go here.)
(Any design change proposal could be also discussed on the _to be continuous_ Google Group: https://groups.google.com/g/tbc-dev.)


/label ~"kind/enhancement" ~"status/needs-investigation"
+15 −0
Original line number Diff line number Diff line
## Presentation

(Necessarily link to an issue. If it doesn't exist, please create one.)

Fixes #999

## Checklist

* Documented:
    * [ ] `README.md` reflects any job, variable or whichever visible change
    * [ ] `kicker.json` reflects any job, variable or whichever visible change
* Tested & examplified:
    * [ ] (url to a project sample successfully proving the merge request fixes the issue)

/label ~"kind/fix"