Moving this to its own repo so it can have builds
parent
17b5b4bab1
commit
25c8046019
@ -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
|
@ -1,4 +0,0 @@
|
||||
FROM alpine/git
|
||||
|
||||
COPY ./smart-commit /bin/smart-commit
|
||||
ENTRYPOINT ["sh /bin/smart-commit"]
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue