diff --git a/drone-plugins/smart-commit/.drone.yml b/drone-plugins/smart-commit/.drone.yml deleted file mode 100644 index 7e2c2a0..0000000 --- a/drone-plugins/smart-commit/.drone.yml +++ /dev/null @@ -1,9 +0,0 @@ -kind: pipeline -name: build-smart-commit - -steps: -- name: "build-and-push" - image: alpine/docker - commands: - - docker build -t code.ndumas.com/ndumas/smart-commit:latest . - - docker push code.ndumas.com/ndumas/smart-commit:latest diff --git a/drone-plugins/smart-commit/Dockerfile b/drone-plugins/smart-commit/Dockerfile deleted file mode 100644 index c3be59c..0000000 --- a/drone-plugins/smart-commit/Dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -FROM alpine/git - -COPY ./smart-commit /bin/smart-commit -ENTRYPOINT ["sh /bin/smart-commit"] diff --git a/drone-plugins/smart-commit/smart-commit b/drone-plugins/smart-commit/smart-commit deleted file mode 100755 index 45adb08..0000000 --- a/drone-plugins/smart-commit/smart-commit +++ /dev/null @@ -1,10 +0,0 @@ -#! /bin/bash - -STATUS=$(git status --porcelain) -STATUS_LEN=${#STATUS} -if [ $STATUS_LEN = 0 ]; then - exit 0 -else - git add . - git commit -qm "CI/CD Commit: $(date -Iseconds)" -fi diff --git a/drone-plugins/smart-commit/smart-commit.sh b/drone-plugins/smart-commit/smart-commit.sh deleted file mode 100644 index e724356..0000000 --- a/drone-plugins/smart-commit/smart-commit.sh +++ /dev/null @@ -1,10 +0,0 @@ -#! /bin/sh - -STATUS=$(git status --porcelain) -STATUS_LEN=${#STATUS} -if [ $STATUS_LEN = 0 ]; then - exit 0 -else - git add . - git commit -qm "CI/CD Commit: $(date -Iseconds)" -fi