Compare commits

...

27 Commits
v3.0.5 ... main

Author SHA1 Message Date
Robert Kaussow b0a5eb3cfb
add deprecation notice 2023-08-29 21:37:13 +02:00
renovate[bot] 7c04e02a19 chore(deps): update dependency golangci/golangci-lint to v1.54.2 2023-08-28 04:39:13 +00:00
renovate[bot] 598aaefe37 chore(docker): update golang:1.20 docker digest to 741d6f9 2023-08-17 14:40:31 +00:00
renovate[bot] ac8cbcf43b chore(docker): update golang:1.20 docker digest to ee18a70 2023-08-17 04:41:06 +00:00
renovate[bot] 6f82fbf1a6 chore(docker): update golang:1.20 docker digest to 2db0b25 2023-08-16 16:49:55 +00:00
renovate[bot] ee27a13d13 chore(deps): update dependency golangci/golangci-lint to v1.54.1 2023-08-14 03:07:19 +00:00
renovate[bot] f2e3686917 chore(docker): update golang:1.20 docker digest to 37c7d85 2023-08-10 08:09:42 +00:00
renovate[bot] 15ea5ff95d chore(docker): update alpine:3.18 docker digest to 7144f7b 2023-08-08 00:12:51 +00:00
renovate[bot] 504b283b4f chore(docker): update golang:1.20 docker digest to bc5f0b5 2023-08-02 04:04:07 +00:00
renovate[bot] f3bf86afdd chore(docker): update golang:1.20 docker digest to 010a0ff 2023-07-30 00:18:56 +00:00
renovate[bot] d01d2d0fe8 chore(docker): update golang:1.20 docker digest to 3952625 2023-07-29 07:20:42 +00:00
renovate[bot] 5fa1fa506f chore(docker): update golang:1.20 docker digest to cfc9d1b 2023-07-14 01:10:20 +00:00
renovate[bot] 96a91376d7 chore(docker): update golang:1.20 docker digest to 8e5a006 2023-07-12 00:24:29 +00:00
renovate[bot] 986e86cee5 chore(docker): update golang:1.20 docker digest to fd9306e 2023-07-06 04:32:34 +00:00
renovate[bot] ecc6dda490 chore(docker): update golang:1.20 docker digest to 20ee7c8 2023-07-05 13:18:24 +00:00
renovate[bot] 78df1a4ce4 chore(docker): update golang:1.20 docker digest to ff2cca5 2023-07-05 06:34:03 +00:00
renovate[bot] 18b82c9804 chore(docker): update golang:1.20 docker digest to 7954299 2023-07-05 00:30:38 +00:00
renovate[bot] 0fe87a4729 chore(docker): update golang:1.20 docker digest to 344193a 2023-06-24 06:40:40 +00:00
renovate[bot] c81d1c44f2 chore(docker): update golang:1.20 docker digest to 8f958bf 2023-06-22 13:09:46 +00:00
renovate[bot] 1ca8198b59 chore(docker): update golang:1.20 docker digest to 9d0422f 2023-06-22 07:11:57 +00:00
renovate[bot] ebfc9f11de chore(deps): update dependency golangci/golangci-lint to v1.53.3 2023-06-19 04:52:59 +00:00
renovate[bot] 1145757f42 chore(docker): update docker digests 2023-06-18 09:31:49 +00:00
renovate[bot] a55ac2050b chore(docker): update golang:1.20 docker digest to e7bb4d1 2023-06-14 17:45:01 +00:00
renovate[bot] c8783227c4 chore(docker): update golang:1.20 docker digest to f28300f 2023-06-14 06:25:40 +00:00
renovate[bot] 9b065af36f chore(docker): update golang:1.20 docker digest to 02d4d88 2023-06-14 00:29:20 +00:00
renovate[bot] bf048f2a5a chore(docker): update golang:1.20 docker digest to 4b1fc02 2023-06-07 01:36:58 +00:00
renovate[bot] 03b2f49618
chore(deps): update dependency golangci/golangci-lint to v1.53.2 (#99)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2023-06-05 09:54:50 +02:00
6 changed files with 6 additions and 306 deletions

View File

@ -1,297 +0,0 @@
---
kind: pipeline
name: test
platform:
os: linux
arch: amd64
steps:
- name: deps
image: golang:1.20
commands:
- make deps
volumes:
- name: godeps
path: /go
- name: lint
image: golang:1.20
commands:
- make lint
volumes:
- name: godeps
path: /go
- name: test
image: golang:1.20
commands:
- make test
volumes:
- name: godeps
path: /go
volumes:
- name: godeps
temp: {}
trigger:
ref:
- refs/heads/main
- refs/tags/**
- refs/pull/**
---
kind: pipeline
name: build-binaries
platform:
os: linux
arch: amd64
steps:
- name: build
image: techknowlogick/xgo:go-1.20.x
commands:
- ln -s /drone/src /source
- make release
- name: executable
image: alpine
commands:
- $(find dist/ -executable -type f -iname ${DRONE_REPO_NAME}-linux-amd64) --help
- name: changelog-generate
image: thegeeklab/git-chglog
commands:
- git fetch -tq
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}
- name: changelog-format
image: thegeeklab/alpine-tools
commands:
- prettier CHANGELOG.md
- prettier -w CHANGELOG.md
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- dist/*
note: CHANGELOG.md
overwrite: true
title: ${DRONE_TAG}
when:
ref:
- refs/tags/**
trigger:
ref:
- refs/heads/main
- refs/tags/**
- refs/pull/**
depends_on:
- test
---
kind: pipeline
name: build-container
platform:
os: linux
arch: amd64
steps:
- name: dryrun
image: thegeeklab/drone-docker-buildx:23
settings:
dockerfile: Dockerfile.multiarch
dry_run: true
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v7
- linux/arm/v6
provenance: false
repo: thegeeklab/${DRONE_REPO_NAME}
when:
ref:
- refs/pull/**
- name: publish-dockerhub
image: thegeeklab/drone-docker-buildx:23
settings:
auto_tag: true
dockerfile: Dockerfile.multiarch
password:
from_secret: docker_password
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v7
- linux/arm/v6
provenance: false
repo: thegeeklab/${DRONE_REPO_NAME}
username:
from_secret: docker_username
when:
ref:
- refs/heads/main
- refs/tags/**
depends_on:
- dryrun
- name: publish-quay
image: thegeeklab/drone-docker-buildx:23
settings:
auto_tag: true
dockerfile: Dockerfile.multiarch
password:
from_secret: quay_password
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v7
- linux/arm/v6
provenance: false
registry: quay.io
repo: quay.io/thegeeklab/${DRONE_REPO_NAME}
username:
from_secret: quay_username
when:
ref:
- refs/heads/main
- refs/tags/**
depends_on:
- dryrun
trigger:
ref:
- refs/heads/main
- refs/tags/**
- refs/pull/**
depends_on:
- test
---
kind: pipeline
name: docs
platform:
os: linux
arch: amd64
concurrency:
limit: 1
steps:
- name: markdownlint
image: thegeeklab/markdownlint-cli
commands:
- markdownlint 'docs/content/**/*.md' 'README.md' 'CONTRIBUTING.md'
- name: spellcheck
image: thegeeklab/alpine-tools
commands:
- spellchecker --files '_docs/**/*.md' 'README.md' 'CONTRIBUTING.md' -d .dictionary -p spell indefinite-article syntax-urls --no-suggestions
environment:
FORCE_COLOR: true
NPM_CONFIG_LOGLEVEL: error
- name: publish
image: thegeeklab/drone-git-action
settings:
action:
- pages
author_email: bot@thegeeklab.de
author_name: thegeeklab-bot
branch: docs
message: auto-update documentation
netrc_password:
from_secret: github_token
pages_directory: _docs/
when:
ref:
- refs/heads/main
trigger:
ref:
- refs/heads/main
- refs/tags/**
- refs/pull/**
depends_on:
- build-binaries
- build-container
---
kind: pipeline
name: notifications
platform:
os: linux
arch: amd64
steps:
- name: pushrm-dockerhub
image: chko/docker-pushrm:1
environment:
DOCKER_PASS:
from_secret: docker_password
DOCKER_USER:
from_secret: docker_username
PUSHRM_FILE: README.md
PUSHRM_SHORT: Custom Drone YAML formatter
PUSHRM_TARGET: thegeeklab/${DRONE_REPO_NAME}
when:
status:
- success
- name: pushrm-quay
image: chko/docker-pushrm:1
environment:
APIKEY__QUAY_IO:
from_secret: quay_token
PUSHRM_FILE: README.md
PUSHRM_TARGET: quay.io/thegeeklab/${DRONE_REPO_NAME}
when:
status:
- success
- name: matrix
image: thegeeklab/drone-matrix
settings:
homeserver:
from_secret: matrix_homeserver
password:
from_secret: matrix_password
roomid:
from_secret: matrix_roomid
template: "Status: **{{ .Build.Status }}**<br/> Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}<br/> Message: {{ .Commit.Message.Title }}"
username:
from_secret: matrix_username
when:
status:
- success
- failure
trigger:
ref:
- refs/heads/main
- refs/tags/**
status:
- success
- failure
depends_on:
- docs
---
kind: signature
hmac: 438d911f51e14a1a221041d46c6bfab5126105767d8dbd78f01606ffc32fe518
...

View File

@ -16,7 +16,6 @@ linters:
- containedctx
- contextcheck
- decorder
- depguard
- dogsled
- dupl
- dupword

View File

@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM golang:1.20@sha256:690e4135bf2a4571a572bfd5ddfa806b1cb9c3dea0446ebadaf32bc2ea09d4f9 as build
FROM --platform=$BUILDPLATFORM golang:1.20@sha256:741d6f9bcab778441efe05c8e4369d4f8ff56c9a635a97d77f55d8b0ec62f907 as build
ARG TARGETOS
ARG TARGETARCH
@ -8,7 +8,7 @@ WORKDIR /src
RUN make build
FROM alpine:3.18@sha256:02bb6f428431fbc2809c5d1b41eab5a68350194fb508869a33cb1af4444c9b11
FROM alpine:3.18@sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"

View File

@ -1,7 +1,7 @@
# renovate: datasource=github-releases depName=mvdan/gofumpt
GOFUMPT_PACKAGE_VERSION := v0.5.0
# renovate: datasource=github-releases depName=golangci/golangci-lint
GOLANGCI_LINT_PACKAGE_VERSION := v1.52.2
GOLANGCI_LINT_PACKAGE_VERSION := v1.54.2
EXECUTABLE := drone-yaml

View File

@ -1,6 +1,6 @@
# drone-yaml
Custom Drone YAML formatter
DISCONTINUED: Custom Drone YAML formatter
[![Build Status](https://img.shields.io/drone/build/thegeeklab/drone-yaml?logo=drone&server=https%3A%2F%2Fdrone.thegeeklab.de)](https://drone.thegeeklab.de/thegeeklab/drone-yaml)
[![Docker Hub](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/thegeeklab/drone-yaml)
@ -10,6 +10,8 @@ Custom Drone YAML formatter
[![Source: GitHub](https://img.shields.io/badge/source-github-blue.svg?logo=github&logoColor=white)](https://github.com/thegeeklab/drone-yaml)
[![License: Apache-2.0](https://img.shields.io/github/license/thegeeklab/drone-yaml)](https://github.com/thegeeklab/drone-yaml/blob/main/LICENSE)
> **DISCONTINUED:** As I don't use Drone CI anymore, this project is unmaintained. If you are interested in a free and open source CI system check out [Woodpecker CI](https://woodpecker-ci.org/).
Custom linter and formatter for the [Drone](https://github.com/drone/drone) YAML configuration file format. You can find the full documentation at [https://drone-plugin-index.geekdocs.de](https://drone-plugin-index.geekdocs.de/tools/drone-yaml).
## Contributors

View File

@ -1,4 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>thegeeklab/renovate-presets:golang"]
}