-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8ff2ab
commit 8918c86
Showing
99 changed files
with
5,410 additions
and
2,212 deletions.
There are no files selected for viewing
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,11 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
set -x | ||
|
||
go build \ | ||
-ldflags '-extldflags "-static"' \ | ||
-ldflags "-X main.version=${DRONE_TAG=latest}" \ | ||
-ldflags "-X main.commit=${DRONE_COMMIT_SHA}" \ | ||
-o release/linux/arm64/drone-autoscaler \ | ||
github.com/drone/autoscaler/cmd/drone-autoscaler |
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
NOTES.md | ||
release | ||
vendor | ||
.*.toml | ||
*.sqlite | ||
*.sqlite3 | ||
*.bak | ||
*.out | ||
*.db | ||
|
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM drone/ca-certs | ||
EXPOSE 8080 80 443 | ||
VOLUME /data | ||
|
||
ENV GODEBUG=netdns=go | ||
ENV XDG_CACHE_HOME /var/lib/autoscaler | ||
ENV DRONE_DATABASE_PATH /var/lib/autoscaler/snapshot.db | ||
ENV GODEBUG netdns=go | ||
ENV XDG_CACHE_HOME /data | ||
ENV DATABASE_DRIVER sqlite3 | ||
ENV DATABASE_DATASOURCE /data/database.sqlite?cache=shared&mode=rwc&_busy_timeout=9999999 | ||
|
||
ADD release/linux/arm64/drone-autoscaler /bin/ | ||
|
||
EXPOSE 8080 80 443 | ||
|
||
ENTRYPOINT ["/bin/drone-autoscaler"] |
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
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
Oops, something went wrong.