Verified Commit b86613c9 authored by Adrian DC's avatar Adrian DC
Browse files

ci(gitlab-ci): deprecate 'hooks' local job

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent 7403243a
Loading
Loading
Loading
Loading
+0 −23
Changes for .gitlab-ci.yml: 0 added lines, 23 removed lines.
Original line number Diff line number Diff line
@@ -73,29 +73,6 @@ variables:
  volumes:
    - ${HOME}/.docker/config.json:/root/.docker/config.json:ro

hooks:
  stage: development
  image: local:silent
  script:
    # Refresh configurations
    - pre-commit-crocodile --configure
    # Stash local changes
    - echo ' '
    - echo ' [INFO] Use "s" to split hunks and "y" to remove changes you do not want, "n" otherwise'
    - echo ' '
    - sleep 2
    - git stash -p
    # Stage changes
    - git add -v ./.cz.yaml ./.pre-commit-config.yaml
    # Enable hooks
    - pre-commit-crocodile --enable
    # Run hooks
    - pre-commit-crocodile --run
    # Reset changes
    - git reset HEAD ./.cz.yaml ./.pre-commit-config.yaml
  rules:
    - if: $CI_LOCAL

registry:build:
  extends:
    - .registry:container