29 Commits

Author SHA1 Message Date
renovate[bot]
42f1acc05b fix(deps): update module github.com/prometheus/client_golang to v1.20.5 2024-12-06 09:38:05 +00:00
23027c5922 Merge pull request #19 from nikdoof/renovate/github.com-sirupsen-logrus-1.x
fix(deps): update module github.com/sirupsen/logrus to v1.9.3
2024-12-06 09:37:17 +00:00
3b145da136 Merge pull request #21 from nikdoof/renovate/golang-1.x
chore(deps): update golang docker tag to v1.20.4
2024-07-26 10:57:58 +01:00
92e47a96c8 Merge pull request #26 from nikdoof/renovate/alpine-3.x
chore(deps): update alpine docker tag to v3.20.2
2024-07-26 10:57:47 +01:00
853d9fc80b Merge pull request #28 from nikdoof/renovate/actions-checkout-4.x
chore(deps): update actions/checkout action to v4
2024-07-26 10:57:15 +01:00
ba346d4312 Merge pull request #33 from nikdoof/renovate/docker-build-push-action-6.x
chore(deps): update docker/build-push-action action to v6
2024-07-26 10:57:00 +01:00
32a94cc135 Merge pull request #31 from nikdoof/renovate/docker-setup-buildx-action-3.x
chore(deps): update docker/setup-buildx-action action to v3
2024-07-26 10:56:49 +01:00
renovate[bot]
92ce7fe969 chore(deps): update docker/build-push-action action to v6 2024-07-26 09:56:49 +00:00
3e2e47b717 Merge pull request #32 from nikdoof/renovate/docker-setup-qemu-action-3.x
chore(deps): update docker/setup-qemu-action action to v3
2024-07-26 10:56:39 +01:00
b71907227b Merge pull request #30 from nikdoof/renovate/docker-login-action-3.x
chore(deps): update docker/login-action action to v3
2024-07-26 10:56:25 +01:00
renovate[bot]
55162b00cd chore(deps): update alpine docker tag to v3.20.2 2024-07-22 23:22:14 +00:00
renovate[bot]
31498311b8 chore(deps): update docker/setup-qemu-action action to v3 2023-10-17 18:38:59 +00:00
renovate[bot]
25033ed3de chore(deps): update docker/setup-buildx-action action to v3 2023-09-12 11:14:58 +00:00
renovate[bot]
faccf547ba chore(deps): update docker/login-action action to v3 2023-09-12 08:13:37 +00:00
renovate[bot]
581ec5b2ab chore(deps): update actions/checkout action to v4 2023-09-04 12:39:35 +00:00
renovate[bot]
975b1f8fa8 chore(deps): update golang docker tag to v1.20.4 2023-08-10 06:26:07 +00:00
renovate[bot]
aa697e0bc9 fix(deps): update module github.com/sirupsen/logrus to v1.9.3 2023-06-03 21:09:58 +00:00
a0cfcb7c18 Merge pull request #23 from nikdoof/renovate/alpine-3.x
chore(deps): update alpine docker tag to v3.17.2
2023-03-23 21:49:03 +00:00
cd71a06345 Merge pull request #17 from nikdoof/renovate/wangyoucao577-go-release-action-1.x
chore(deps): update wangyoucao577/go-release-action action to v1.36
2023-03-23 21:48:54 +00:00
6bc8841336 Merge pull request #22 from nikdoof/renovate/github.com-prometheus-client_golang-1.x
fix(deps): update module github.com/prometheus/client_golang to v1.14.0
2023-03-23 21:48:42 +00:00
9a854913d7 Merge pull request #24 from nikdoof/renovate/docker-build-push-action-4.x
chore(deps): update docker/build-push-action action to v4
2023-03-23 21:48:33 +00:00
renovate[bot]
9481bd72bc chore(deps): update wangyoucao577/go-release-action action to v1.36 2023-03-02 05:56:38 +00:00
renovate[bot]
dfec9d8cc8 chore(deps): update docker/build-push-action action to v4 2023-02-28 14:13:45 +00:00
renovate[bot]
3c0d5ab230 chore(deps): update alpine docker tag to v3.17.2 2023-02-28 14:12:50 +00:00
d0172e19e1 Merge pull request #18 from nikdoof/renovate/alpine-3.x
chore(deps): update alpine docker tag to v3.16.3
2023-02-28 14:12:31 +00:00
renovate[bot]
9b728749da fix(deps): update module github.com/prometheus/client_golang to v1.14.0 2022-11-20 17:55:16 +00:00
renovate[bot]
aa0fb72066 chore(deps): update alpine docker tag to v3.16.3 2022-11-20 17:54:47 +00:00
e699b7747f chore: Update build and docker dependencies 2022-07-16 12:43:23 +01:00
6ac0db075b chore: Update dependencies 2022-07-16 12:42:50 +01:00
5 changed files with 1315 additions and 36 deletions

View File

@@ -1,5 +1,4 @@
name: ci
name: build-docker-image
on:
push:
branches:
@@ -12,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v1
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
@@ -24,9 +23,11 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: |
ghcr.io/${{ github.repository_owner }}/hg612-exporter:${{ github.ref_name }}
ghcr.io/${{ github.repository_owner }}/hg612-exporter:latest

View File

@@ -16,12 +16,12 @@ jobs:
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.26
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: wangyoucao577/go-release-action@v1.36
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.18.1.linux-amd64.tar.gz"
goversion: "https://dl.google.com/go/go1.18.4.linux-amd64.tar.gz"
binary_name: "hg612-exporter"
extra_files: LICENSE README.md

View File

@@ -1,10 +1,10 @@
FROM golang:1.18.1-alpine3.15 as build
FROM golang:1.20.4-alpine3.16 as build
WORKDIR /build
COPY . .
RUN go get -d -v .
RUN go build -v -o hg612-exporter .
FROM alpine:3.15.4
FROM alpine:3.20.2
WORKDIR /service
COPY --from=build /build/hg612-exporter .
ENTRYPOINT ["./hg612-exporter"]

6
go.mod
View File

@@ -4,7 +4,7 @@ go 1.15
require (
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.12.1
github.com/sirupsen/logrus v1.8.1
github.com/urfave/cli/v2 v2.5.1
github.com/prometheus/client_golang v1.20.5
github.com/sirupsen/logrus v1.9.3
github.com/urfave/cli/v2 v2.11.0
)

1322
go.sum

File diff suppressed because it is too large Load Diff