Skip to content

Commit

Permalink
add dependabot updates for GitHub Actions and Go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed May 9, 2024
1 parent c193d11 commit c55998d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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"
"Go modules updates for tests":
dependency-type: "development"
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: test
run: |
go test -v -mod=vendor -timeout=60s -covermode=count -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./...
go test -v -timeout=60s -covermode=count -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./...
cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "mock_" > $GITHUB_WORKSPACE/profile.cov
working-directory: app
env:
Expand All @@ -33,7 +33,7 @@ jobs:
run: go install github.com/mattn/goveralls@latest

- name: build
run: go build -v -mod=vendor
run: go build -v
working-directory: app

- name: submit coverage
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ ARG GIT_BRANCH
ARG SKIP_TEST
ARG GITHUB_SHA

ENV GOFLAGS="-mod=vendor"

ADD . /build/secrets
WORKDIR /build/secrets

Expand All @@ -29,6 +27,9 @@ RUN \

FROM umputun/baseimage:app-latest

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

COPY --from=build-backend /build/secrets.bin /srv/secrets
COPY --from=build-backend /build/secrets/ui/static /srv/ui/static/

Expand Down

0 comments on commit c55998d

Please sign in to comment.