regenerate drone config

This commit is contained in:
Robert Kaussow 2021-09-13 10:55:36 +02:00
parent 25ff8498e5
commit ed2bca16d9
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -1,56 +1,49 @@
--- ---
kind: pipeline kind: pipeline
name: test name: test
platform: platform:
os: linux
arch: amd64 arch: amd64
os: linux
steps: steps:
- name: lint - commands:
image: koalaman/shellcheck-alpine:stable
commands:
- shellcheck ./wait-for - shellcheck ./wait-for
image: koalaman/shellcheck-alpine:stable
- name: test name: lint
image: bats/bats - commands:
commands:
- bats ./wait-for.bats - bats ./wait-for.bats
image: bats/bats
name: test
trigger: trigger:
ref: ref:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
- refs/pull/** - refs/pull/**
--- ---
depends_on:
- test
kind: pipeline kind: pipeline
name: build-package name: build-package
platform: platform:
os: linux
arch: amd64 arch: amd64
os: linux
steps: steps:
- name: checksum - commands:
image: alpine
commands:
- sha256sum wait-for > sha256sum.txt - sha256sum wait-for > sha256sum.txt
image: alpine
- name: changelog-generate name: checksum
image: thegeeklab/git-chglog - commands:
commands:
- git fetch -tq - git fetch -tq
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased} - git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased
unreleased}
- name: changelog-format image: thegeeklab/git-chglog
image: thegeeklab/alpine-tools name: changelog-generate
commands: - commands:
- prettier CHANGELOG.md - prettier CHANGELOG.md
- prettier -w CHANGELOG.md - prettier -w CHANGELOG.md
image: thegeeklab/alpine-tools
- name: publish-github name: changelog-format
image: plugins/github-release - image: plugins/github-release
name: publish-github
settings: settings:
api_key: api_key:
from_secret: github_token from_secret: github_token
@ -63,27 +56,22 @@ steps:
when: when:
ref: ref:
- refs/tags/** - refs/tags/**
trigger: trigger:
ref: ref:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
- refs/pull/** - refs/pull/**
---
depends_on: depends_on:
- test - test
---
kind: pipeline kind: pipeline
name: build-container-amd64 name: build-container-amd64
platform: platform:
os: linux
arch: amd64 arch: amd64
os: linux
steps: steps:
- name: dryrun - image: thegeeklab/drone-docker:19
image: thegeeklab/drone-docker:19 name: dryrun
settings: settings:
dockerfile: docker/Dockerfile.amd64 dockerfile: docker/Dockerfile.amd64
dry_run: true dry_run: true
@ -95,9 +83,8 @@ steps:
when: when:
ref: ref:
- refs/pull/** - refs/pull/**
- image: thegeeklab/drone-docker:19
- name: publish-dockerhub name: publish-dockerhub
image: thegeeklab/drone-docker:19
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: amd64 auto_tag_suffix: amd64
@ -111,9 +98,8 @@ steps:
ref: ref:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
- image: thegeeklab/drone-docker:19
- name: publish-quay name: publish-quay
image: thegeeklab/drone-docker:19
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: amd64 auto_tag_suffix: amd64
@ -128,27 +114,22 @@ steps:
ref: ref:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
trigger: trigger:
ref: ref:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
- refs/pull/** - refs/pull/**
---
depends_on: depends_on:
- test - test
---
kind: pipeline kind: pipeline
name: build-container-arm64 name: build-container-arm64
platform: platform:
os: linux
arch: arm64 arch: arm64
os: linux
steps: steps:
- name: dryrun - image: thegeeklab/drone-docker:19
image: thegeeklab/drone-docker:19 name: dryrun
settings: settings:
dockerfile: docker/Dockerfile.arm64 dockerfile: docker/Dockerfile.arm64
dry_run: true dry_run: true
@ -160,9 +141,8 @@ steps:
when: when:
ref: ref:
- refs/pull/** - refs/pull/**
- image: thegeeklab/drone-docker:19
- name: publish-dockerhub name: publish-dockerhub
image: thegeeklab/drone-docker:19
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: arm64 auto_tag_suffix: arm64
@ -176,9 +156,8 @@ steps:
ref: ref:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
- image: thegeeklab/drone-docker:19
- name: publish-quay name: publish-quay
image: thegeeklab/drone-docker:19
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: arm64 auto_tag_suffix: arm64
@ -193,27 +172,22 @@ steps:
ref: ref:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
trigger: trigger:
ref: ref:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
- refs/pull/** - refs/pull/**
---
depends_on: depends_on:
- test - test
---
kind: pipeline kind: pipeline
name: build-container-arm name: build-container-arm
platform: platform:
os: linux
arch: arm arch: arm
os: linux
steps: steps:
- name: dryrun - image: thegeeklab/drone-docker:19
image: thegeeklab/drone-docker:19 name: dryrun
settings: settings:
dockerfile: docker/Dockerfile.arm dockerfile: docker/Dockerfile.arm
dry_run: true dry_run: true
@ -225,9 +199,8 @@ steps:
when: when:
ref: ref:
- refs/pull/** - refs/pull/**
- image: thegeeklab/drone-docker:19
- name: publish-dockerhub name: publish-dockerhub
image: thegeeklab/drone-docker:19
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: arm auto_tag_suffix: arm
@ -241,9 +214,8 @@ steps:
ref: ref:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
- image: thegeeklab/drone-docker:19
- name: publish-quay name: publish-quay
image: thegeeklab/drone-docker:19
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: arm auto_tag_suffix: arm
@ -258,27 +230,24 @@ steps:
ref: ref:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
trigger: trigger:
ref: ref:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
- refs/pull/** - refs/pull/**
depends_on:
- test
--- ---
depends_on:
- build-container-amd64
- build-container-arm
- build-container-arm64
kind: pipeline kind: pipeline
name: notifications name: notifications
platform: platform:
os: linux
arch: amd64 arch: amd64
os: linux
steps: steps:
- name: manifest-dockerhub - image: plugins/manifest
image: plugins/manifest name: manifest-dockerhub
settings: settings:
auto_tag: true auto_tag: true
ignore_missing: true ignore_missing: true
@ -290,9 +259,8 @@ steps:
when: when:
status: status:
- success - success
- image: plugins/manifest
- name: manifest-quay name: manifest-quay
image: plugins/manifest
settings: settings:
auto_tag: true auto_tag: true
ignore_missing: true ignore_missing: true
@ -304,11 +272,7 @@ steps:
when: when:
status: status:
- success - success
- environment:
- name: pushrm-dockerhub
pull: always
image: chko/docker-pushrm:1
environment:
DOCKER_PASS: DOCKER_PASS:
from_secret: docker_password from_secret: docker_password
DOCKER_USER: DOCKER_USER:
@ -316,24 +280,25 @@ steps:
PUSHRM_FILE: README.md PUSHRM_FILE: README.md
PUSHRM_SHORT: Poor-mans docker service synchronizer PUSHRM_SHORT: Poor-mans docker service synchronizer
PUSHRM_TARGET: thegeeklab/${DRONE_REPO_NAME} PUSHRM_TARGET: thegeeklab/${DRONE_REPO_NAME}
image: chko/docker-pushrm:1
name: pushrm-dockerhub
pull: always
when: when:
status: status:
- success - success
- environment:
- name: pushrm-quay
pull: always
image: chko/docker-pushrm:1
environment:
APIKEY__QUAY_IO: APIKEY__QUAY_IO:
from_secret: quay_token from_secret: quay_token
PUSHRM_FILE: README.md PUSHRM_FILE: README.md
PUSHRM_TARGET: quay.io/thegeeklab/${DRONE_REPO_NAME} PUSHRM_TARGET: quay.io/thegeeklab/${DRONE_REPO_NAME}
image: chko/docker-pushrm:1
name: pushrm-quay
pull: always
when: when:
status: status:
- success - success
- image: plugins/matrix
- name: matrix name: matrix
image: plugins/matrix
settings: settings:
homeserver: homeserver:
from_secret: matrix_homeserver from_secret: matrix_homeserver
@ -341,14 +306,15 @@ steps:
from_secret: matrix_password from_secret: matrix_password
roomid: roomid:
from_secret: matrix_roomid from_secret: matrix_roomid
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}" template: 'Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name
}}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message:
{{ build.message }}'
username: username:
from_secret: matrix_username from_secret: matrix_username
when: when:
status: status:
- success - success
- failure - failure
trigger: trigger:
ref: ref:
- refs/heads/main - refs/heads/main
@ -356,14 +322,8 @@ trigger:
status: status:
- success - success
- failure - failure
depends_on:
- build-container-amd64
- build-container-arm
- build-container-arm64
--- ---
kind: signature kind: signature
hmac: 2bf0348e9246595526e80674f998395345ba82fb9cb71b1b46daa152c6464b4b hmac: 6fbd749273f067a96f12909fd22d46b28fa32bf61a13000ecd04a760f628140d
... ...