Skip to content

Commit

Permalink
add dependabot updates for GitHub Actions, Go modules, Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal authored and umputun committed May 9, 2024
1 parent 0a9e489 commit 6f61676
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 683 deletions.
37 changes: 37 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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: "docker"
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "monthly"
groups:
"Go modules updates":
dependency-type: "production"
"Go modules updates for tests":
dependency-type: "development"
- package-ecosystem: "gomod"
directory: "/examples/plugin"
schedule:
interval: "monthly"
groups:
"Go modules updates":
dependency-type: "production"
"Go modules updates for tests":
dependency-type: "development"
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "mocks" | grep -v "_mock" > $GITHUB_WORKSPACE/profile.cov
working-directory: app
env:
GOFLAGS: "-mod=vendor"
TZ: "America/Chicago"


Expand Down
3 changes: 2 additions & 1 deletion 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 @@ -23,6 +22,8 @@ RUN \
FROM ghcr.io/umputun/baseimage/app:v1.12.0 as base

FROM scratch
# enables automatic changelog generation by tools like Dependabot
LABEL org.opencontainers.image.source="https://github.com/umputun/reproxy"
ENV REPROXY_IN_DOCKER=1

COPY --from=backend /build/reproxy /srv/reproxy
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.site
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ RUN mkdocs build


FROM ghcr.io/umputun/reproxy
# enables automatic changelog generation by tools like Dependabot
LABEL org.opencontainers.image.source="https://github.com/umputun/reproxy"
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 reproxy.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/reproxy
Expand Down
1 change: 0 additions & 1 deletion examples/plugin/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM golang:1.16-alpine as build

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

ADD . /build
Expand Down
9 changes: 7 additions & 2 deletions examples/plugin/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
module github.com/umputun/reproxy/plugin

go 1.16
go 1.22

require github.com/umputun/reproxy v0.6.0
require github.com/umputun/reproxy v0.999.0

require (
github.com/go-pkgz/lgr v0.11.1 // indirect
github.com/go-pkgz/repeater v1.1.3 // indirect
)

replace github.com/umputun/reproxy => ../../
685 changes: 8 additions & 677 deletions examples/plugin/go.sum

Large diffs are not rendered by default.

0 comments on commit 6f61676

Please sign in to comment.