Merge remote-tracking branch 'origin/master'

This commit is contained in:
MassiveBox 2023-06-24 09:02:49 +02:00
commit 4b3af653b8
Signed by: massivebox
GPG key ID: 9B74D3A59181947D

View file

@ -0,0 +1,69 @@
pipeline:
build-and-format:
image: golang
commands:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
- go mod tidy
- golangci-lint run
- env GOOS=linux GOARCH=amd64 go build -o ecodash-x86 src/main/main.go
- env GOOS=linux GOARCH=arm go build -o ecodash-arm src/main/main.go
- apt-get update; apt-get upgrade -y; apt-get install zip -y
- mv ecodash-x86 ecodash; zip -r ecodash-x86.zip templates ecodash; mv ecodash ecodash-x86
- mv ecodash-arm ecodash; zip -r ecodash-arm.zip templates ecodash; mv ecodash ecodash-arm
- zip templates.zip -r templates
upload-debug:
image: vividboarder/drone-webdav
settings:
file: { ecodash-x86,ecodash-arm,templates.zip }
destination:
from_secret: webdav_destination
username:
from_secret: webdav_username
password:
from_secret: webdav_password
attempts: 5
gitea-publish:
image: plugins/gitea-release
settings:
base_url: https://git.massivebox.net
files:
- ecodash-x86.zip
- ecodash-arm.zip
api_key:
from_secret: auth_token
title: ${CI_COMMIT_TAG}
when:
event: tag
docker-unstable:
image: woodpeckerci/plugin-docker-buildx
settings:
registry: git.massivebox.net
repo: git.massivebox.net/ecodash/ecodash
platforms: linux/amd64,linux/arm64
tag: unstable
username: massivebox
password:
from_secret: auth_token
context: .woodpecker
dockerfile: .woodpecker/Dockerfile-woodpecker
when:
event: [ push, pull_request, deployment ]
docker-tag:
image: woodpeckerci/plugin-docker-buildx
settings:
registry: git.massivebox.net
repo: git.massivebox.net/ecodash/ecodash
platforms: linux/amd64,linux/arm64
auto_tag: true
username: massivebox
password:
from_secret: auth_token
context: .woodpecker
dockerfile: .woodpecker/Dockerfile-woodpecker
when:
event: tag