Commit a60e50c1 authored by Simon Cornet's avatar Simon Cornet
Browse files

feat: initial commit

parent e7021657
Loading
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
.ansible

.gitlab-ci.yml

0 → 100644
+19 −0
Original line number Diff line number Diff line
---

# gitLab ci stages
stages:

  # stages
  - "linting"
  - "build"


# include jobs
include:

  # deployment
  - local: ".gitlab/build.yaml"

  # linting
  - component: "$CI_SERVER_FQDN/components/markdownlint/markdownlint@1.0.0"
  - component: "$CI_SERVER_FQDN/components/yamllint/yamllint@1.0.2"

.gitlab/build.yaml

0 → 100644
+29 −0
Original line number Diff line number Diff line
---

variables:
  STORAGE_DRIVER: "overlay"

stages:
  - "build"

build:
  stage: "build"
  image: "quay.io/buildah/stable:latest"
  script:

    # login to container registry
    - "echo $CR_PASSWORD | buildah login -u $CR_USERNAME --password-stdin $CR_HOSTNAME"

    # build observium-pe image
    - "buildah bud -t molecule-ci -f Dockerfile.linux.amd64 ."

    # add tags to image
    - "buildah tag molecule-ci cr.simoncor.net/siempie/molecule-ci:latest"
    - "buildah tag molecule-ci cr.simoncor.net/siempie/molecule-ci:v25.07.18"

    # push image to dockerhub.
    - "buildah push cr.simoncor.net/siempie/molecule-ci:latest"
    - "buildah push cr.simoncor.net/siempie/molecule-ci:v25.07.18"

    # logout from container registry
    - "buildah logout $CR_HOSTNAME"
+12 −0
Original line number Diff line number Diff line
{
  // files to lint
  "globs": [
    "readme.md"
  ],
  // linting rules
  "config": {
    "MD013": {
      "line_length": 120
    }
  }
}

.yamllint

0 → 100644
+30 −0
Original line number Diff line number Diff line
---
extends: 'default'

rules:
  braces:
    max-spaces-inside: 1
    forbid: true
  comments:
    min-spaces-from-content: 1
  comments-indentation: false
  empty-lines:
    max: 2
  indentation:
    spaces: 2
    check-multi-line-strings: true
  line-length:
    max: 130
    allow-non-breakable-words: true
    allow-non-breakable-inline-mappings: true
  new-line-at-end-of-file: 'enable'
  octal-values:
    forbid-implicit-octal: true
    forbid-explicit-octal: true
  truthy:
    allowed-values:
      - 'true'
      - 'false'
  quoted-strings:
    quote-type: 'any'
    required: true
Loading