-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from theohbrothers/enhancement/remove-alpine-x…
…-suffix-from-docker-tags Enhancement: Remove `alpine-*` suffix from docker tags
- Loading branch information
Showing
23 changed files
with
404 additions
and
66 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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,34 @@ | ||
FROM golang:1.20-alpine as builder | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN set -eux; \ | ||
apk add --no-cache git; \ | ||
git clone https://github.com/adnanh/webhook.git /src --branch 2.7.0; \ | ||
cd /src; \ | ||
go build -ldflags="-s -w" -o /usr/local/bin/webhook; | ||
|
||
FROM alpine:3.17 | ||
COPY --from=builder /usr/local/bin/webhook /usr/local/bin/webhook | ||
RUN webhook --version | ||
|
||
RUN apk add --no-cache ca-certificates | ||
RUN apk add --no-cache curl | ||
RUN apk add --no-cache git | ||
RUN apk add --no-cache jq | ||
RUN set -eux; \ | ||
wget -qO- https://github.com/mozilla/sops/releases/download/v3.7.1/sops-v3.7.1.linux > /usr/local/bin/sops; \ | ||
chmod +x /usr/local/bin/sops; \ | ||
sha256sum /usr/local/bin/sops | grep '^185348fd77fc160d5bdf3cd20ecbc796163504fd3df196d7cb29000773657b74 '; \ | ||
sops --version | ||
|
||
RUN apk add --no-cache gnupg | ||
RUN apk add --no-cache openssh-client | ||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
WORKDIR /config | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] | ||
EXPOSE 9000 | ||
CMD [ "-verbose", "-hooks=/config/hooks.yml", "-hotreload" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- webhook "$@" | ||
fi | ||
|
||
exec "$@" |
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,24 @@ | ||
FROM golang:1.20-alpine as builder | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN set -eux; \ | ||
apk add --no-cache git; \ | ||
git clone https://github.com/adnanh/webhook.git /src --branch 2.7.0; \ | ||
cd /src; \ | ||
go build -ldflags="-s -w" -o /usr/local/bin/webhook; | ||
|
||
FROM alpine:3.13 | ||
COPY --from=builder /usr/local/bin/webhook /usr/local/bin/webhook | ||
RUN webhook --version | ||
|
||
RUN apk add --no-cache ca-certificates | ||
RUN apk add --no-cache libvirt-client | ||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
WORKDIR /config | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] | ||
EXPOSE 9000 | ||
CMD [ "-verbose", "-hooks=/config/hooks.yml", "-hotreload" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- webhook "$@" | ||
fi | ||
|
||
exec "$@" |
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,24 @@ | ||
FROM golang:1.20-alpine as builder | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN set -eux; \ | ||
apk add --no-cache git; \ | ||
git clone https://github.com/adnanh/webhook.git /src --branch 2.7.0; \ | ||
cd /src; \ | ||
go build -ldflags="-s -w" -o /usr/local/bin/webhook; | ||
|
||
FROM alpine:3.15 | ||
COPY --from=builder /usr/local/bin/webhook /usr/local/bin/webhook | ||
RUN webhook --version | ||
|
||
RUN apk add --no-cache ca-certificates | ||
RUN apk add --no-cache libvirt-client | ||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
WORKDIR /config | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] | ||
EXPOSE 9000 | ||
CMD [ "-verbose", "-hooks=/config/hooks.yml", "-hotreload" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- webhook "$@" | ||
fi | ||
|
||
exec "$@" |
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,24 @@ | ||
FROM golang:1.20-alpine as builder | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN set -eux; \ | ||
apk add --no-cache git; \ | ||
git clone https://github.com/adnanh/webhook.git /src --branch 2.7.0; \ | ||
cd /src; \ | ||
go build -ldflags="-s -w" -o /usr/local/bin/webhook; | ||
|
||
FROM alpine:3.17 | ||
COPY --from=builder /usr/local/bin/webhook /usr/local/bin/webhook | ||
RUN webhook --version | ||
|
||
RUN apk add --no-cache ca-certificates | ||
RUN apk add --no-cache libvirt-client | ||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
WORKDIR /config | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] | ||
EXPOSE 9000 | ||
CMD [ "-verbose", "-hooks=/config/hooks.yml", "-hotreload" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- webhook "$@" | ||
fi | ||
|
||
exec "$@" |
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,23 @@ | ||
FROM golang:1.20-alpine as builder | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN set -eux; \ | ||
apk add --no-cache git; \ | ||
git clone https://github.com/adnanh/webhook.git /src --branch 2.7.0; \ | ||
cd /src; \ | ||
go build -ldflags="-s -w" -o /usr/local/bin/webhook; | ||
|
||
FROM alpine:3.17 | ||
COPY --from=builder /usr/local/bin/webhook /usr/local/bin/webhook | ||
RUN webhook --version | ||
|
||
RUN apk add --no-cache ca-certificates | ||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
WORKDIR /config | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] | ||
EXPOSE 9000 | ||
CMD [ "-verbose", "-hooks=/config/hooks.yml", "-hotreload" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- webhook "$@" | ||
fi | ||
|
||
exec "$@" |
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,34 @@ | ||
FROM golang:1.20-alpine as builder | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN set -eux; \ | ||
apk add --no-cache git; \ | ||
git clone https://github.com/adnanh/webhook.git /src --branch 2.8.1; \ | ||
cd /src; \ | ||
go build -ldflags="-s -w" -o /usr/local/bin/webhook; | ||
|
||
FROM alpine:3.17 | ||
COPY --from=builder /usr/local/bin/webhook /usr/local/bin/webhook | ||
RUN webhook --version | ||
|
||
RUN apk add --no-cache ca-certificates | ||
RUN apk add --no-cache curl | ||
RUN apk add --no-cache git | ||
RUN apk add --no-cache jq | ||
RUN set -eux; \ | ||
wget -qO- https://github.com/mozilla/sops/releases/download/v3.7.1/sops-v3.7.1.linux > /usr/local/bin/sops; \ | ||
chmod +x /usr/local/bin/sops; \ | ||
sha256sum /usr/local/bin/sops | grep '^185348fd77fc160d5bdf3cd20ecbc796163504fd3df196d7cb29000773657b74 '; \ | ||
sops --version | ||
|
||
RUN apk add --no-cache gnupg | ||
RUN apk add --no-cache openssh-client | ||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
WORKDIR /config | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] | ||
EXPOSE 9000 | ||
CMD [ "-verbose", "-hooks=/config/hooks.yml", "-hotreload" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- webhook "$@" | ||
fi | ||
|
||
exec "$@" |
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,24 @@ | ||
FROM golang:1.20-alpine as builder | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN set -eux; \ | ||
apk add --no-cache git; \ | ||
git clone https://github.com/adnanh/webhook.git /src --branch 2.8.1; \ | ||
cd /src; \ | ||
go build -ldflags="-s -w" -o /usr/local/bin/webhook; | ||
|
||
FROM alpine:3.13 | ||
COPY --from=builder /usr/local/bin/webhook /usr/local/bin/webhook | ||
RUN webhook --version | ||
|
||
RUN apk add --no-cache ca-certificates | ||
RUN apk add --no-cache libvirt-client | ||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
WORKDIR /config | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] | ||
EXPOSE 9000 | ||
CMD [ "-verbose", "-hooks=/config/hooks.yml", "-hotreload" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- webhook "$@" | ||
fi | ||
|
||
exec "$@" |
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,24 @@ | ||
FROM golang:1.20-alpine as builder | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN set -eux; \ | ||
apk add --no-cache git; \ | ||
git clone https://github.com/adnanh/webhook.git /src --branch 2.8.1; \ | ||
cd /src; \ | ||
go build -ldflags="-s -w" -o /usr/local/bin/webhook; | ||
|
||
FROM alpine:3.15 | ||
COPY --from=builder /usr/local/bin/webhook /usr/local/bin/webhook | ||
RUN webhook --version | ||
|
||
RUN apk add --no-cache ca-certificates | ||
RUN apk add --no-cache libvirt-client | ||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
WORKDIR /config | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] | ||
EXPOSE 9000 | ||
CMD [ "-verbose", "-hooks=/config/hooks.yml", "-hotreload" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- webhook "$@" | ||
fi | ||
|
||
exec "$@" |
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,24 @@ | ||
FROM golang:1.20-alpine as builder | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN set -eux; \ | ||
apk add --no-cache git; \ | ||
git clone https://github.com/adnanh/webhook.git /src --branch 2.8.1; \ | ||
cd /src; \ | ||
go build -ldflags="-s -w" -o /usr/local/bin/webhook; | ||
|
||
FROM alpine:3.17 | ||
COPY --from=builder /usr/local/bin/webhook /usr/local/bin/webhook | ||
RUN webhook --version | ||
|
||
RUN apk add --no-cache ca-certificates | ||
RUN apk add --no-cache libvirt-client | ||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
WORKDIR /config | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] | ||
EXPOSE 9000 | ||
CMD [ "-verbose", "-hooks=/config/hooks.yml", "-hotreload" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- webhook "$@" | ||
fi | ||
|
||
exec "$@" |
Oops, something went wrong.