From 25c8046019ea604fc273aa7809136ad00ea24d4d Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Fri, 3 Feb 2023 19:22:46 +0000 Subject: [PATCH] Moving this to its own repo so it can have builds --- drone-plugins/smart-commit/.drone.yml | 9 --------- drone-plugins/smart-commit/Dockerfile | 4 ---- drone-plugins/smart-commit/smart-commit | 10 ---------- drone-plugins/smart-commit/smart-commit.sh | 10 ---------- 4 files changed, 33 deletions(-) delete mode 100644 drone-plugins/smart-commit/.drone.yml delete mode 100644 drone-plugins/smart-commit/Dockerfile delete mode 100755 drone-plugins/smart-commit/smart-commit delete mode 100644 drone-plugins/smart-commit/smart-commit.sh 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