Skip to content

Commit

Permalink
change name
Browse files Browse the repository at this point in the history
  • Loading branch information
michelheusschen committed Jul 14, 2023
1 parent a75fce2 commit 98aac05
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88 changes: 25 additions & 63 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,11 @@ builds:

dockers:
- image_templates:
- "docker.io/chhaley/omada_exporter:latest-amd64"
- "docker.io/chhaley/omada_exporter:{{ .Version }}-amd64"
- "docker.io/chhaley/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
- "docker.io/chhaley/omada_exporter:{{ .Major }}.{{ .Minor }}-amd64"
- "docker.io/chhaley/omada_exporter:{{ .Major }}-amd64"

- "ghcr.io/charlie-haley/omada_exporter:latest-amd64"
- "ghcr.io/charlie-haley/omada_exporter:{{ .Version }}-amd64"
- "ghcr.io/charlie-haley/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
- "ghcr.io/charlie-haley/omada_exporter:{{ .Major }}.{{ .Minor }}-amd64"
- "ghcr.io/charlie-haley/omada_exporter:{{ .Major }}-amd64"
- "ghcr.io/michelheusschen/omada_exporter:latest-amd64"
- "ghcr.io/michelheusschen/omada_exporter:{{ .Version }}-amd64"
- "ghcr.io/michelheusschen/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
- "ghcr.io/michelheusschen/omada_exporter:{{ .Major }}.{{ .Minor }}-amd64"
- "ghcr.io/michelheusschen/omada_exporter:{{ .Major }}-amd64"
use: buildx
dockerfile: Dockerfile
goarch: amd64
Expand All @@ -48,17 +42,11 @@ dockers:
- "--build-arg=VCS_REF={{.FullCommit}}"
- "--platform=linux/amd64"
- image_templates:
- "docker.io/chhaley/omada_exporter:latest-arm64v8"
- "docker.io/chhaley/omada_exporter:{{ .Version }}-arm64v8"
- "docker.io/chhaley/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64v8"
- "docker.io/chhaley/omada_exporter:{{ .Major }}.{{ .Minor }}-arm64v8"
- "docker.io/chhaley/omada_exporter:{{ .Major }}-arm64v8"

- "ghcr.io/charlie-haley/omada_exporter:latest-arm64v8"
- "ghcr.io/charlie-haley/omada_exporter:{{ .Version }}-arm64v8"
- "ghcr.io/charlie-haley/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64v8"
- "ghcr.io/charlie-haley/omada_exporter:{{ .Major }}.{{ .Minor }}-arm64v8"
- "ghcr.io/charlie-haley/omada_exporter:{{ .Major }}-arm64v8"
- "ghcr.io/michelheusschen/omada_exporter:latest-arm64v8"
- "ghcr.io/michelheusschen/omada_exporter:{{ .Version }}-arm64v8"
- "ghcr.io/michelheusschen/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64v8"
- "ghcr.io/michelheusschen/omada_exporter:{{ .Major }}.{{ .Minor }}-arm64v8"
- "ghcr.io/michelheusschen/omada_exporter:{{ .Major }}-arm64v8"
use: buildx
dockerfile: Dockerfile
goarch: arm64
Expand All @@ -74,57 +62,31 @@ dockers:
- "--platform=linux/arm64/v8"

docker_manifests:
## Docker Hub
- name_template: docker.io/chhaley/omada_exporter:latest
image_templates:
- docker.io/chhaley/omada_exporter:latest-amd64
- docker.io/chhaley/omada_exporter:latest-arm64v8

- name_template: docker.io/chhaley/omada_exporter:{{ .Version }}
image_templates:
- docker.io/chhaley/omada_exporter:{{ .Version }}-amd64
- docker.io/chhaley/omada_exporter:{{ .Version }}-arm64v8

- name_template: docker.io/chhaley/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
image_templates:
- docker.io/chhaley/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64
- docker.io/chhaley/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64v8

- name_template: docker.io/chhaley/omada_exporter:{{ .Major }}.{{ .Minor }}
image_templates:
- docker.io/chhaley/omada_exporter:{{ .Major }}.{{ .Minor }}-amd64
- docker.io/chhaley/omada_exporter:{{ .Major }}.{{ .Minor }}-arm64v8

- name_template: docker.io/chhaley/omada_exporter:{{ .Major }}
image_templates:
- docker.io/chhaley/omada_exporter:{{ .Major }}-amd64
- docker.io/chhaley/omada_exporter:{{ .Major }}-arm64v8

## GHCR
- name_template: ghcr.io/charlie-haley/omada_exporter:latest
- name_template: ghcr.io/michelheusschen/omada_exporter:latest
image_templates:
- ghcr.io/charlie-haley/omada_exporter:latest-amd64
- ghcr.io/charlie-haley/omada_exporter:latest-arm64v8
- ghcr.io/michelheusschen/omada_exporter:latest-amd64
- ghcr.io/michelheusschen/omada_exporter:latest-arm64v8

- name_template: ghcr.io/charlie-haley/omada_exporter:{{ .Version }}
- name_template: ghcr.io/michelheusschen/omada_exporter:{{ .Version }}
image_templates:
- ghcr.io/charlie-haley/omada_exporter:{{ .Version }}-amd64
- ghcr.io/charlie-haley/omada_exporter:{{ .Version }}-arm64v8
- ghcr.io/michelheusschen/omada_exporter:{{ .Version }}-amd64
- ghcr.io/michelheusschen/omada_exporter:{{ .Version }}-arm64v8

- name_template: ghcr.io/charlie-haley/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
- name_template: ghcr.io/michelheusschen/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
image_templates:
- ghcr.io/charlie-haley/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64
- ghcr.io/charlie-haley/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64v8
- ghcr.io/michelheusschen/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64
- ghcr.io/michelheusschen/omada_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64v8

- name_template: ghcr.io/charlie-haley/omada_exporter:{{ .Major }}.{{ .Minor }}
- name_template: ghcr.io/michelheusschen/omada_exporter:{{ .Major }}.{{ .Minor }}
image_templates:
- ghcr.io/charlie-haley/omada_exporter:{{ .Major }}.{{ .Minor }}-amd64
- ghcr.io/charlie-haley/omada_exporter:{{ .Major }}.{{ .Minor }}-arm64v8
- ghcr.io/michelheusschen/omada_exporter:{{ .Major }}.{{ .Minor }}-amd64
- ghcr.io/michelheusschen/omada_exporter:{{ .Major }}.{{ .Minor }}-arm64v8

- name_template: ghcr.io/charlie-haley/omada_exporter:{{ .Major }}
- name_template: ghcr.io/michelheusschen/omada_exporter:{{ .Major }}
image_templates:
- ghcr.io/charlie-haley/omada_exporter:{{ .Major }}-amd64
- ghcr.io/charlie-haley/omada_exporter:{{ .Major }}-arm64v8
- ghcr.io/michelheusschen/omada_exporter:{{ .Major }}-amd64
- ghcr.io/michelheusschen/omada_exporter:{{ .Major }}-arm64v8

release:
prerelease: auto
Expand Down
6 changes: 3 additions & 3 deletions cmd/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os"
"strings"

"github.com/charlie-haley/omada_exporter/pkg/api"
"github.com/charlie-haley/omada_exporter/pkg/collector"
"github.com/charlie-haley/omada_exporter/pkg/config"
"github.com/michelheusschen/omada_exporter/pkg/api"
"github.com/michelheusschen/omada_exporter/pkg/collector"
"github.com/michelheusschen/omada_exporter/pkg/config"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
zerolog "github.com/rs/zerolog"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/charlie-haley/omada_exporter
module github.com/michelheusschen/omada_exporter

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/charlie-haley/omada_exporter/cmd"
"github.com/michelheusschen/omada_exporter/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http/cookiejar"
"time"

"github.com/charlie-haley/omada_exporter/pkg/config"
"github.com/michelheusschen/omada_exporter/pkg/config"
log "github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/device_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http/httptest"
"testing"

"github.com/charlie-haley/omada_exporter/pkg/config"
"github.com/michelheusschen/omada_exporter/pkg/config"
)

func createMockServer() (*http.Client, *httptest.Server) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/collector/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package collector
import (
"fmt"

"github.com/charlie-haley/omada_exporter/pkg/api"
"github.com/michelheusschen/omada_exporter/pkg/api"
"github.com/prometheus/client_golang/prometheus"
log "github.com/rs/zerolog/log"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/collector/controller.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package collector

import (
"github.com/charlie-haley/omada_exporter/pkg/api"
"github.com/michelheusschen/omada_exporter/pkg/api"
"github.com/prometheus/client_golang/prometheus"
log "github.com/rs/zerolog/log"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/collector/device.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package collector

import (
"github.com/charlie-haley/omada_exporter/pkg/api"
"github.com/michelheusschen/omada_exporter/pkg/api"
"github.com/prometheus/client_golang/prometheus"
log "github.com/rs/zerolog/log"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/collector/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package collector
import (
"fmt"

"github.com/charlie-haley/omada_exporter/pkg/api"
"github.com/michelheusschen/omada_exporter/pkg/api"
"github.com/prometheus/client_golang/prometheus"
log "github.com/rs/zerolog/log"
)
Expand Down

0 comments on commit 98aac05

Please sign in to comment.