initial commit
continuous-integration/drone Build encountered an error
Details
continuous-integration/drone Build encountered an error
Details
commit
2041de4fd3
Binary file not shown.
@ -0,0 +1,9 @@
|
||||
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
|
@ -0,0 +1,4 @@
|
||||
FROM alpine/git
|
||||
|
||||
COPY ./smart-commit /bin/smart-commit
|
||||
ENTRYPOINT ["sh /bin/smart-commit"]
|
@ -0,0 +1,10 @@
|
||||
#! /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
|
@ -0,0 +1,10 @@
|
||||
#! /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