-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Withinboredom/bot 20 go consumers (#14)
* start refactoring history * add go cli * do not fail * fix typo * update cli * do not track with lfs * commit actual binary
- Loading branch information
1 parent
5ed0e4b
commit e954d9f
Showing
383 changed files
with
139,833 additions
and
59 deletions.
There are no files selected for viewing
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/.idea/ | ||
/dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1709414729 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
TARGET := dphp-linux-x86_64 | ||
BIN_PATH := ../bin | ||
DOCKER_IMAGE := builder | ||
DOCKER_TARGET := cli-base-alpine | ||
BUILD_PATH := /go/src/app/dist | ||
|
||
${BIN_PATH}/${TARGET}: cli.go go.mod .vendor_modified | ||
cd .. && docker build --pull --target ${DOCKER_TARGET} -t ${DOCKER_IMAGE} . | ||
docker create --name builder builder || ( docker rm -f builder && false ) | ||
docker cp ${DOCKER_IMAGE}:${BUILD_PATH}/${TARGET} ${BIN_PATH}/${TARGET} || ( docker rm -f builder && false ) | ||
docker rm -f builder | ||
|
||
# This will capture the most recently modified time among all files under vendor/ recursively | ||
VENDOR_TIMESTAMP := $(shell find vendor -type f -print0 | xargs -0 stat -c '%Y' | sort -nr | head -n1) | ||
|
||
.vendor_modified: | ||
@echo ${VENDOR_TIMESTAMP} > .vendor_modified |
Oops, something went wrong.