Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

FROM ghcr.io/voxpupuli/r10k:$R10K_VERSION-latest

LABEL org.label-schema.maintainer="Vox Pupuli Team <voxpupuli@groups.io>" \

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Build test container (5.0.0, 2.9.0, amd64, ubuntu-24.04)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$vcs_ref' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Build test container (5.0.0, 2.9.0, amd64, ubuntu-24.04)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$WEBHOOK_GO_VERSION' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Build test container (5.0.0, 2.9.0, amd64, ubuntu-24.04)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$build_type' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Build test container (5.0.0, 2.9.0, amd64, ubuntu-24.04)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$build_date' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Build test container (5.0.0, 2.9.0, arm64, ubuntu-24.04-arm)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$build_date' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Build test container (5.0.0, 2.9.0, arm64, ubuntu-24.04-arm)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$vcs_ref' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Build test container (5.0.0, 2.9.0, arm64, ubuntu-24.04-arm)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$WEBHOOK_GO_VERSION' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Build test container (5.0.0, 2.9.0, arm64, ubuntu-24.04-arm)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$build_type' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Scan CI container (5.0.0, 2.9.0, amd64, ubuntu-24.04)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$build_date' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Scan CI container (5.0.0, 2.9.0, amd64, ubuntu-24.04)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$vcs_ref' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Scan CI container (5.0.0, 2.9.0, amd64, ubuntu-24.04)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$WEBHOOK_GO_VERSION' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Scan CI container (5.0.0, 2.9.0, amd64, ubuntu-24.04)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$build_type' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Scan CI container (5.0.0, 2.9.0, arm64, ubuntu-24.04-arm)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$build_date' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Scan CI container (5.0.0, 2.9.0, arm64, ubuntu-24.04-arm)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$vcs_ref' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Scan CI container (5.0.0, 2.9.0, arm64, ubuntu-24.04-arm)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$WEBHOOK_GO_VERSION' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 16 in Containerfile

View workflow job for this annotation

GitHub Actions / Scan CI container (5.0.0, 2.9.0, arm64, ubuntu-24.04-arm)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$build_type' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
org.label-schema.vendor="Vox Pupuli" \
org.label-schema.url="https://github.com/voxpupuli/container-r10k-webhook" \
org.label-schema.vcs-url="https://github.com/voxpupuli/container-r10k-webhook" \
Expand All @@ -36,10 +36,10 @@
USER root

COPY --from=builder --chmod=755 /build/webhook-go /usr/sbin/webhook-go
COPY --chmod=755 webhook/docker-entrypoint.sh /docker-entrypoint.sh
COPY webhook/docker-entrypoint.d /docker-entrypoint.d
COPY --chmod=755 container-entrypoint.sh /container-entrypoint.sh
COPY container-entrypoint.d /container-entrypoint.d
COPY Containerfile /

EXPOSE 4000
ENTRYPOINT ["/docker-entrypoint.sh"]
ENTRYPOINT ["/container-entrypoint.sh"]
CMD [ "server", "--config", "/etc/webhook.yml" ]
4 changes: 2 additions & 2 deletions webhook/docker-entrypoint.sh → container-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -e

if [ -d /docker-entrypoint.d/ ]; then
find /docker-entrypoint.d/ -type f -name "*.sh" \
if [ -d /container-entrypoint.d/ ]; then
find /container-entrypoint.d/ -type f -name "*.sh" \
-exec echo Running {} \; -exec sh {} \;
fi

Expand Down
Loading