adding a few more vars, setting collection to 60 secs

This commit is contained in:
2023-09-25 22:59:36 -04:00
parent 28df368156
commit 3c9149f7c0
8 changed files with 117 additions and 3 deletions

22
Taskfile.yml Normal file
View File

@@ -0,0 +1,22 @@
version: '3'
dotenv: ['.env']
tasks:
build:
cmds:
- GOOS=linux GOARCH=amd64 go build -o bin/prometheus-plex-exporter . # The infamous windows .
build-docker:
cmds:
- task: build
- docker build -t gitea.derajnet.duckdns.org/deranjer/prometheus-plex-exporter:latest .
publish-docker:
dotenv: ['.env']
cmds:
- task: build
- task: build-docker
- docker login gitea.derajnet.duckdns.org -u deranjer -p $DOCKER_PASS
- docker push gitea.derajnet.duckdns.org/deranjer/prometheus-plex-exporter:latest
test-env:
cmds:
- echo docker login -u deranjer -p $DOCKER_PASS