Skip to content

Commit

Permalink
add dependabot settings for automatic package update
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal authored and umputun committed May 30, 2024
1 parent 49821aa commit 68d0bce
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 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"
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "mocks" | grep -v "_mock" > $GITHUB_WORKSPACE/profile.cov
working-directory: app
env:
GO111MODULE: on
TZ: "America/Chicago"

- name: golangci-lint
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ ARG GIT_BRANCH
ARG GITHUB_SHA
ARG CI

ENV GOFLAGS="-mod=vendor"

ADD . /build
WORKDIR /build

Expand All @@ -18,6 +16,10 @@ RUN \


FROM umputun/baseimage:app-latest

# enables automatic changelog generation by tools like Dependabot
LABEL org.opencontainers.image.source="https://github.com/radio-t/super-bot"

COPY --from=build /build/telegram-rt-bot /srv/telegram-rt-bot
COPY data/*.data /srv/data/
COPY data/logs.html /srv/logs.html
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generate:
.PHONY: build
## build: builds server
build:
@cd app && go build -v -mod=vendor
@cd app && go build -v

.PHONY: vendor
## vendor: runs `go mod vendor`
Expand All @@ -22,7 +22,7 @@ vendor:
.PHONY: test
## test: runs `go test`
test:
@go test -mod=vendor ./app/... -coverprofile cover.out
@go test ./app/... -coverprofile cover.out

.PHONY: lint
## lint: runs `golangci-lint`
Expand All @@ -35,5 +35,5 @@ lint:
# make run ARGS="--super=umputun"
# make run ARGS="--super=umputun --broadcast=umputun --export-num=684 --export-path=logs --export-day=20200104 --export-template=data/logs.html"
run:
@go run -v -mod=vendor app/main.go --dbg ${ARGS}
@go run -v app/main.go --dbg ${ARGS}

0 comments on commit 68d0bce

Please sign in to comment.