-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nico Braun <[email protected]>
- Loading branch information
Showing
11 changed files
with
52 additions
and
10 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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
dotenv .env | ||
dotenv_if_exists .local/.env | ||
|
||
PATH_add .local/bin | ||
|
||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/.local/lib" |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.load uuid | ||
.load sha1 | ||
.mode json |
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ ADD https://www.sqlite.org/src/raw/5bb2264c1b64d163efa46509544fd7500cb8769cb7c16 | |
RUN gcc -shared -fPIC -o /usr/local/lib/uuid.so uuid.c | ||
|
||
FROM base as runtime | ||
RUN apk add --no-cache --update ca-certificates git openssh-client | ||
RUN apk add --no-cache --update ca-certificates git openssh-client jq | ||
COPY --from=sqlite /usr/local/bin /usr/local/bin | ||
COPY --from=sqlite /usr/local/lib /usr/local/lib | ||
RUN ldconfig /usr/local/lib | ||
|
@@ -52,3 +52,13 @@ ENV GIT_AUTHOR_NAME="kobold[bot]" \ | |
GIT_AUTHOR_EMAIL="[email protected]" | ||
ENV GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" \ | ||
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" | ||
LABEL org.opencontainers.image.title="kobold" \ | ||
org.opencontainers.image.description="Image reference update bot" \ | ||
org.opencontainers.image.authors="Nico Braun" \ | ||
org.opencontainers.image.vendor="bluebrown" \ | ||
org.opencontainers.image.licenses="BSD-3-Clause" \ | ||
org.opencontainers.image.url="https://hub.docker.com/r/bluebrown/kobold" \ | ||
org.opencontainers.image.source="https://github.com/bluebrown/kobold" | ||
ARG BUILD_DATE="unknown" VCS_REF="unknown" | ||
LABEL org.opencontainers.image.created="$BUILD_DATE" \ | ||
org.opencontainers.image.revision="$VCS_REF" |
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,7 @@ | ||
#!/usr/bin/env sh | ||
|
||
if [ -n "$RELEASE_TAG" ]; then | ||
echo "$RELEASE_TAG" | ||
else | ||
git describe --tags --always --dirty | ||
fi |
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,13 @@ | ||
#!/usr/bin/env bash | ||
set -o nounset -o errexit -o errtrace -o pipefail | ||
|
||
script_dir="$(dirname "$(readlink -f "$0")")" | ||
cd "$script_dir/.." | ||
|
||
tag="$(sh build/gettag.sh)" | ||
vcs_ref="$(git rev-parse --short HEAD)" | ||
|
||
docker build -t "docker.io/bluebrown/kobold:$tag" \ | ||
--build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ | ||
--build-arg VCS_REF="$vcs_ref" \ | ||
-f build/Dockerfile . |
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,5 +1,5 @@ | ||
POST /events?chan=dockerhub HTTP/1.1 | ||
Host: localhost:9000 | ||
Host: localhost:8080 | ||
|
||
{ | ||
"push_data": { | ||
|