Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
f102ef50bf | |||
d3d251ef30 | |||
eecaf2a82e | |||
f0f6c58f0b | |||
681c7f703b |
@ -79,7 +79,9 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ env.DOCKER_IMG }}:${{ github.ref_name }}
|
||||
tags: |
|
||||
${{ env.DOCKER_IMG }}:${{ github.ref_name }}
|
||||
${{ env.DOCKER_IMG }}:latest
|
||||
build-args: |
|
||||
VER_PKG={{ env.VER_PKG }}
|
||||
VER_PKG=${{ env.VER_PKG }}
|
||||
VERSION=${{ github.ref_name }}
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -20,7 +20,10 @@
|
||||
|
||||
# Go workspace file
|
||||
go.work
|
||||
go.work.sum
|
||||
|
||||
.env
|
||||
|
||||
bin/*
|
||||
|
||||
config.yaml
|
||||
|
2
Makefile
2
Makefile
@ -3,7 +3,7 @@ CMD_NAME := ambient-local-exporter
|
||||
.PHONY: all test build docker install clean
|
||||
|
||||
VERSION ?= development # Default to "development" if VERSION is not set
|
||||
PLATFORMS := linux/amd64 darwin/amd64 darwin/arm64
|
||||
PLATFORMS := linux/amd64 linux/arm64 darwin/amd64 darwin/arm64
|
||||
OUTPUT_DIR := bin
|
||||
VER_PKG := gitea.libretechconsulting.com/rmcguire/go-app/pkg/config.Version
|
||||
DOCKER_IMG := gitea.libretechconsulting.com/rmcguire/ambient-local-exporter
|
||||
|
11
TODO.md
11
TODO.md
@ -1,10 +1,11 @@
|
||||
# TODO
|
||||
|
||||
- [ ] Fix shutdown
|
||||
- [ ] Configuration for app
|
||||
- [ ] Makefile
|
||||
- [ ] Dockerfile
|
||||
- [ ] Helm Chart
|
||||
- [ ] Gitea CI
|
||||
- [ ] Update README
|
||||
- [ ] Version flag
|
||||
|
||||
## Done
|
||||
- [x] Gitea CI
|
||||
- [x] Version flag
|
||||
- [x] Makefile
|
||||
- [x] Dockerfile
|
||||
|
3
go.mod
3
go.mod
@ -3,7 +3,7 @@ module gitea.libretechconsulting.com/rmcguire/ambient-weather-local-exporter
|
||||
go 1.23.4
|
||||
|
||||
require (
|
||||
gitea.libretechconsulting.com/rmcguire/go-app v0.1.1
|
||||
gitea.libretechconsulting.com/rmcguire/go-app v0.1.2
|
||||
github.com/gorilla/schema v1.4.1
|
||||
github.com/rs/zerolog v1.33.0
|
||||
go.opentelemetry.io/otel v1.33.0
|
||||
@ -13,6 +13,7 @@ require (
|
||||
|
||||
require (
|
||||
github.com/beorn7/perks v1.0.1 // indirect
|
||||
github.com/caarlos0/env/v11 v11.3.1 // indirect
|
||||
github.com/caarlos0/env/v9 v9.0.0 // indirect
|
||||
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
|
||||
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
||||
|
4
go.sum
4
go.sum
@ -2,8 +2,12 @@ gitea.libretechconsulting.com/rmcguire/go-app v0.1.0 h1:H4TMgQ463oRNOyoi0FAvfGtO
|
||||
gitea.libretechconsulting.com/rmcguire/go-app v0.1.0/go.mod h1:p0ajkpFvzzD6VZ4xSjuowtwGRb1DjMfo/iG6LyFqFCs=
|
||||
gitea.libretechconsulting.com/rmcguire/go-app v0.1.1 h1:Hrxqi1tqz8mf0baBsWgFe/S4jyMtIuPqH2FlanJUMNc=
|
||||
gitea.libretechconsulting.com/rmcguire/go-app v0.1.1/go.mod h1:p0ajkpFvzzD6VZ4xSjuowtwGRb1DjMfo/iG6LyFqFCs=
|
||||
gitea.libretechconsulting.com/rmcguire/go-app v0.1.2 h1:28ha36+TXKLW4imzNMNO8fubWbCxEX59+V1RNpKgqR8=
|
||||
gitea.libretechconsulting.com/rmcguire/go-app v0.1.2/go.mod h1:MJGwEJGW1vOgWnJdmKC0R/WvqWy2t0S0q+mKpPpd/xc=
|
||||
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
|
||||
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
|
||||
github.com/caarlos0/env/v11 v11.3.1 h1:cArPWC15hWmEt+gWk7YBi7lEXTXCvpaSdCiZE2X5mCA=
|
||||
github.com/caarlos0/env/v11 v11.3.1/go.mod h1:qupehSf/Y0TUTsxKywqRt/vJjN5nz6vauiYEUUr8P4U=
|
||||
github.com/caarlos0/env/v9 v9.0.0 h1:SI6JNsOA+y5gj9njpgybykATIylrRMklbs5ch6wO6pc=
|
||||
github.com/caarlos0/env/v9 v9.0.0/go.mod h1:ye5mlCVMYh6tZ+vCgrs/B95sj88cg5Tlnc0XIzgZ020=
|
||||
github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8=
|
||||
|
8
unset_env.sh
Executable file
8
unset_env.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!env sh
|
||||
unset APP_NAME
|
||||
unset APP_LOG_LEVEL
|
||||
unset APP_LOG_FORMAT
|
||||
unset APP_LOG_TIME_FORMAT
|
||||
unset APP_HTTP_LISTEN
|
||||
unset APP_OTEL_STDOUT_ENABLED
|
||||
unset APP_OTEL_METRIC_INTERVAL_SECS
|
Reference in New Issue
Block a user