Skip to content

Commit

Permalink
add dependabot updates for GitHub Actions, Go modules and Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal authored and umputun committed May 13, 2024
1 parent 17c5d43 commit a7f6a8e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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"
groups:
"GitHub Actions updates":
patterns:
- "*"
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "monthly"
groups:
"Go modules updates":
dependency-type: "production"
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ ARG GIT_BRANCH
ARG GITHUB_SHA
ARG CI

ENV GOFLAGS="-mod=vendor"
ENV CGO_ENABLED=0

ADD . /build
Expand All @@ -20,7 +19,11 @@ RUN \
cd app && go build -o /build/updater -ldflags "-X main.revision=${version} -s -w"


FROM ghcr.io/umputun/baseimage/app:v1.7.0
FROM ghcr.io/umputun/baseimage/app:v1.13.0

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

RUN apk add docker openssh-client

RUN \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.site
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ COPY site/logo.png /build/site/


FROM ghcr.io/umputun/reproxy
# enables automatic changelog generation by tools like Dependabot
LABEL org.opencontainers.image.source="https://github.com/umputun/updater"
COPY --from=build /build/site /srv/site
EXPOSE 8080
USER app
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dist:
docker rm -f updater.bin

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

build: info
- cd app && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.revision=$(REV) -s -w" -o ../dist/updater
Expand Down

0 comments on commit a7f6a8e

Please sign in to comment.