diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e67d4b6dfa9f75ee2baf11ba0c44ab9d68f741f..7ad091e21d3ddcafeb08da27dcfe49aa7fd3d462 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,7 @@ services: ## Should contain at least these three stages for a basic CI/CD stages: - formatting + - commit-formatting - build - test - release @@ -23,6 +24,13 @@ prettify: - cd backend - npm run-script prettify +commit-prettify-changes: + stage: commit-formatting + script: + - install_git + - which git + - git -v + build: variables: DOCKER_HOST: tcp://localhost:2375 @@ -163,6 +171,10 @@ deploy: fi } + function install_git() { + which git || apk add --no-cache bash git openssh + } + function install_compose() { # if [-n "which apt-get"]] # then