Skip to content

Commit

Permalink
Merge pull request #82 from paskal/paskal/dockerfile_comment
Browse files Browse the repository at this point in the history
Add and clarify org.opencontainers.image.source comment in Dockerfiles
  • Loading branch information
umputun committed May 10, 2024
2 parents 409a020 + 4f2cbb6 commit 8840678
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ jobs:
go test -v -timeout=100s -covermode=count -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./...
cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "mocks" | grep -v "_mock" > $GITHUB_WORKSPACE/profile.cov
env:
GO111MODULE: on
TZ: "America/Chicago"
GOFLAGS: "-mod=vendor"

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN \


FROM alpine:3.19
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#docker
# enables automatic changelog generation by tools like Dependabot
LABEL org.opencontainers.image.source="https://github.com/umputun/tg-spam"
ENV TGSPAM_IN_DOCKER=1
RUN apk add --no-cache tzdata
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ docker:
docker build -t umputun/tg-spam .

race_test:
go test -race -mod=vendor -timeout=60s -count 1 ./...
go test -race -timeout=60s -count 1 ./...

prep_site:
cp -fv README.md site/docs/index.md
Expand Down
3 changes: 3 additions & 0 deletions updater/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM ghcr.io/umputun/baseimage/app:latest as base

# enables automatic changelog generation by tools like Dependabot
LABEL org.opencontainers.image.source="https://github.com/umputun/tg-spam"

ENV UPDATER_IN_DOCKER=1
COPY update-git.sh /srv/update-git.sh
RUN chmod +x /srv/update-git.sh
Expand Down

0 comments on commit 8840678

Please sign in to comment.