Compare commits
11 Commits
683d2e95d3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d2362a4d47 | |||
| 1c6b0c31a1 | |||
| ff8f471c10 | |||
| 65a2a57c1a | |||
| ad93c51761 | |||
| a9c30718ed | |||
| 9a64a4c6f4 | |||
| d13b9c2f53 | |||
| 375b602eac | |||
| 95706d7e55 | |||
| 91aa7d7eb3 |
@@ -11,7 +11,7 @@ jobs:
|
||||
if: gitea.event_name == 'pull_request'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: 'stable'
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
if: gitea.event_name == 'pull_request'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: 'stable'
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
- uses: buildtool/setup-buildtools-action@v1
|
||||
- name: Build and push
|
||||
run: unset GITEA_TOKEN && build && push
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
/service
|
||||
/coverage.txt
|
||||
/coverage.out
|
||||
.buildtools.yaml
|
||||
|
||||
@@ -9,7 +9,7 @@ repos:
|
||||
- --allow-multiple-documents
|
||||
- id: check-added-large-files
|
||||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
||||
rev: v9.24.0
|
||||
rev: v9.25.0
|
||||
hooks:
|
||||
- id: commitlint
|
||||
stages: [commit-msg]
|
||||
@@ -27,6 +27,6 @@ repos:
|
||||
hooks:
|
||||
- id: go-test
|
||||
- repo: https://github.com/gitleaks/gitleaks
|
||||
rev: v8.28.0
|
||||
rev: v8.30.1
|
||||
hooks:
|
||||
- id: gitleaks
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
FROM amd64/golang:1.26.2@sha256:3e677b9776e5fcb030321772b4fe13c58b22b8abe772c647be8f746159d1a2dc as modules
|
||||
FROM amd64/golang:1.26.4@sha256:f83d23523668b4ea5b644ae7711b2284f35f3bc3369a02655a8bc30d98586c4d as modules
|
||||
WORKDIR /build
|
||||
ENV GOPRIVATE=gitea.unbound.se/shiny,gitea.unbound.se/unboundsoftware
|
||||
ADD go.* /build
|
||||
@@ -15,7 +15,7 @@ RUN GOOS=linux GOARCH=amd64 go build \
|
||||
-mod=readonly \
|
||||
-o /release/service \
|
||||
-ldflags "-w -s -X main.buildVersion=${CI_COMMIT}" \
|
||||
./cmd/service/service.go
|
||||
./cmd/service
|
||||
|
||||
FROM scratch
|
||||
ENV TZ Europe/Stockholm
|
||||
|
||||
Reference in New Issue
Block a user