Skip to content

Commit

Permalink
add dependabot configuration and source metadata to Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed May 8, 2024
1 parent 99c25f1 commit cf6e7cb
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "docker"
directory: "/base.alpine"
schedule:
interval: "monthly"
- package-ecosystem: "docker"
directory: "/base.scratch"
schedule:
interval: "monthly"
- package-ecosystem: "docker"
directory: "/build.go"
schedule:
interval: "monthly"
4 changes: 3 additions & 1 deletion base.alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.19

LABEL maintainer="Umputun <[email protected]>"
LABEL org.opencontainers.image.authors="Umputun <[email protected]>"
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#docker
LABEL org.opencontainers.image.source="https://github.com/umputun/baseimage"

ENV \
TERM=xterm-color \
Expand Down
7 changes: 5 additions & 2 deletions base.scratch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM ghcr.io/umputun/baseimage/app:latest as prep

LABEL maintainer="Umputun <[email protected]>"

RUN apk add -u tzdata ca-certificates build-base gcc

RUN \
Expand All @@ -12,6 +10,11 @@ RUN \
ls -la /tmp/nop

FROM scratch

LABEL org.opencontainers.image.authors="Umputun <[email protected]>"
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#docker
LABEL org.opencontainers.image.source="https://github.com/umputun/baseimage"

ENV TZ=America/Chicago
COPY --from=prep /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=prep /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
Expand Down
5 changes: 4 additions & 1 deletion build.go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM golang:1.22-alpine
LABEL maintainer="Umputun <[email protected]>"

LABEL org.opencontainers.image.authors="Umputun <[email protected]>"
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#docker
LABEL org.opencontainers.image.source="https://github.com/umputun/baseimage"

ENV \
TIME_ZONE=America/Chicago \
Expand Down

0 comments on commit cf6e7cb

Please sign in to comment.