Loading .gitlab/build.yaml 0 → 100644 +32 −0 Original line number Diff line number Diff line --- variables: DOCKER_DRIVER: "overlay2" DOCKER_HOST: "tcp://localhost:2375/" DOCKER_TLS_CERTDIR: "" stages: - "build" build image: stage: "build" image: "docker:27.3.1" services: - name: "docker:27.3.1-dind" command: ["--tls=false"] script: # login to container registry - echo "$CR_PASSWORD" | docker login $CR_HOSTNAME -u $CR_USERNAME --password-stdin # build observium-pe image - "docker build -t roundcube -f Dockerfile.linux.amd64 ." # add tags to image - "docker image tag roundcube cr.simoncor.net/siempie/roundcube:latest" # push image to dockerhub. - "docker push --all-tags cr.simoncor.net/siempie/roundcube" # logout from container registry - "docker logout $CR_HOSTNAME" .gitlab/linting.yaml 0 → 100644 +17 −0 Original line number Diff line number Diff line --- # linting linting: stage: "linting" image: name: "cr.simoncor.net/siempie/ansible-deployment:latest" entrypoint: ["/bin/sh", "-c"] rules: # run only on push to default branch - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - when: "never" # start linting script: - "yamllint ." Loading
.gitlab/build.yaml 0 → 100644 +32 −0 Original line number Diff line number Diff line --- variables: DOCKER_DRIVER: "overlay2" DOCKER_HOST: "tcp://localhost:2375/" DOCKER_TLS_CERTDIR: "" stages: - "build" build image: stage: "build" image: "docker:27.3.1" services: - name: "docker:27.3.1-dind" command: ["--tls=false"] script: # login to container registry - echo "$CR_PASSWORD" | docker login $CR_HOSTNAME -u $CR_USERNAME --password-stdin # build observium-pe image - "docker build -t roundcube -f Dockerfile.linux.amd64 ." # add tags to image - "docker image tag roundcube cr.simoncor.net/siempie/roundcube:latest" # push image to dockerhub. - "docker push --all-tags cr.simoncor.net/siempie/roundcube" # logout from container registry - "docker logout $CR_HOSTNAME"
.gitlab/linting.yaml 0 → 100644 +17 −0 Original line number Diff line number Diff line --- # linting linting: stage: "linting" image: name: "cr.simoncor.net/siempie/ansible-deployment:latest" entrypoint: ["/bin/sh", "-c"] rules: # run only on push to default branch - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - when: "never" # start linting script: - "yamllint ."