7
.cz.yaml
Normal file
7
.cz.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
commitizen:
|
||||||
|
bump_message: "build(version): bump version $current_version \u2192 $new_version"
|
||||||
|
changelog_incremental: false
|
||||||
|
name: cz_conventional_commits
|
||||||
|
tag_format: $major.$minor.$patch$prerelease
|
||||||
|
update_changelog_on_bump: true
|
||||||
|
version: 0.0.1
|
@ -1,48 +1,17 @@
|
|||||||
variables:
|
variables:
|
||||||
ImageRepo: $CI_REGISTRY/no-fuss-computing/infrastructure/glpi/9.2.1
|
MY_PROJECT_ID: "12928828"
|
||||||
ImageTag: latest
|
GIT_SYNC_URL: "https://$GITHUB_USERNAME_ROBOT:$GITHUB_TOKEN_ROBOT@github.com/NoFussComputing/docker-glpi.git"
|
||||||
GLPI_CLONE_FOLDER: glpi/glpi
|
|
||||||
GLPI_APP_NAME: glpi
|
|
||||||
GLPI_APP_CLONE_URL: https://github.com/glpi-project/glpi.git
|
|
||||||
GLPI_APP_GIT_TAG: 9.2.1
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- prepare
|
|
||||||
- build
|
|
||||||
- staging
|
|
||||||
- deploy
|
|
||||||
- clean
|
|
||||||
|
|
||||||
prepare:Apps:
|
|
||||||
stage: prepare
|
|
||||||
before_script:
|
|
||||||
- rm -fR $GLPI_APP_NAME/$GLPI_APP_NAME
|
|
||||||
- git config --global http.sslVerify "false"
|
|
||||||
script:
|
|
||||||
- git clone --branch $GLPI_APP_GIT_TAG --depth 1 $GLPI_APP_CLONE_URL $GLPI_APP_NAME/$GLPI_APP_NAME
|
|
||||||
artifacts:
|
|
||||||
name: $APP_GIT_TAG
|
|
||||||
expire_in: 1h
|
|
||||||
paths:
|
|
||||||
- $GLPI_APP_NAME/Dockerfile
|
|
||||||
- $GLPI_APP_NAME/.dockerignore
|
|
||||||
- $GLPI_APP_NAME/$GLPI_APP_NAME/*
|
|
||||||
|
|
||||||
|
|
||||||
build:App:
|
DOCKER_IMAGE_BUILD_TARGET_PLATFORMS: "linux/amd64,linux/arm64,linux/arm/v7"
|
||||||
stage: build
|
DOCKER_IMAGE_PUBLISH_NAME: 'docker-glpi'
|
||||||
image: gitlab/dind
|
DOCKER_IMAGE_PUBLISH_REGISTRY: docker.io/nofusscomputing
|
||||||
services:
|
DOCKER_IMAGE_PUBLISH_URL: https://hub.docker.com/r/nofusscomputing/$DOCKER_IMAGE_PUBLISH_NAME
|
||||||
- docker:dind
|
PAGES_ENVIRONMENT_PATH: projects/docker_glpi/
|
||||||
variables:
|
|
||||||
GIT_STRATEGY: none
|
include:
|
||||||
before_script:
|
- project: nofusscomputing/projects/gitlab-ci
|
||||||
- docker info
|
ref: development
|
||||||
- docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
|
file:
|
||||||
script:
|
- template/automagic.gitlab-ci.yaml
|
||||||
- docker build $CI_PROJECT_DIR/$GLPI_APP_NAME/. --tag $ImageRepo:$GLPI_APP_GIT_TAG
|
#- template: Jobs/Container-Scanning.gitlab-ci.yml # see https://gitlab.com/gitlab-org/gitlab/-/issues/381665
|
||||||
- docker push $ImageRepo:$GLPI_APP_GIT_TAG
|
|
||||||
after_script:
|
|
||||||
- docker logout $CI_REGISTRY
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
|
4
.gitmodules
vendored
Normal file
4
.gitmodules
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[submodule "gitlab-ci"]
|
||||||
|
path = gitlab-ci
|
||||||
|
url = https://gitlab.com/nofusscomputing/projects/gitlab-ci.git
|
||||||
|
branch = development
|
8
.nfc_automation.yaml
Normal file
8
.nfc_automation.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
role_git_conf:
|
||||||
|
gitlab:
|
||||||
|
submodule_branch: "development"
|
||||||
|
default_branch: development
|
||||||
|
mr_labels: ~"type::automation" ~"impact::0" ~"priority::0"
|
||||||
|
auto_merge: true
|
1
gitlab-ci
Submodule
1
gitlab-ci
Submodule
Submodule gitlab-ci added at 975de7aca2
Reference in New Issue
Block a user