mirror of
https://github.com/thegeeklab/wait-for.git
synced 2024-11-22 12:20:39 +00:00
switch to drone-matrix
This commit is contained in:
parent
ed2bca16d9
commit
e829496461
@ -214,11 +214,11 @@ local PipelineNotifications = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'matrix',
|
name: 'matrix',
|
||||||
image: 'plugins/matrix',
|
image: 'thegeeklab/drone-matrix',
|
||||||
settings: {
|
settings: {
|
||||||
homeserver: { from_secret: 'matrix_homeserver' },
|
homeserver: { from_secret: 'matrix_homeserver' },
|
||||||
roomid: { from_secret: 'matrix_roomid' },
|
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 {{ commit.Author }}<br/> Message: {{ commit.Message }}',
|
||||||
username: { from_secret: 'matrix_username' },
|
username: { from_secret: 'matrix_username' },
|
||||||
password: { from_secret: 'matrix_password' },
|
password: { from_secret: 'matrix_password' },
|
||||||
},
|
},
|
||||||
|
180
.drone.yml
180
.drone.yml
@ -1,49 +1,56 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: test
|
name: test
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
arch: amd64
|
|
||||||
os: linux
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- commands:
|
- name: lint
|
||||||
- shellcheck ./wait-for
|
|
||||||
image: koalaman/shellcheck-alpine:stable
|
image: koalaman/shellcheck-alpine:stable
|
||||||
name: lint
|
commands:
|
||||||
- commands:
|
- shellcheck ./wait-for
|
||||||
- bats ./wait-for.bats
|
|
||||||
|
- name: test
|
||||||
image: bats/bats
|
image: bats/bats
|
||||||
name: test
|
commands:
|
||||||
|
- bats ./wait-for.bats
|
||||||
|
|
||||||
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:
|
||||||
arch: amd64
|
|
||||||
os: linux
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- commands:
|
- name: checksum
|
||||||
- sha256sum wait-for > sha256sum.txt
|
|
||||||
image: alpine
|
image: alpine
|
||||||
name: checksum
|
commands:
|
||||||
- commands:
|
- sha256sum wait-for > sha256sum.txt
|
||||||
- git fetch -tq
|
|
||||||
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased
|
- name: changelog-generate
|
||||||
unreleased}
|
|
||||||
image: thegeeklab/git-chglog
|
image: thegeeklab/git-chglog
|
||||||
name: changelog-generate
|
commands:
|
||||||
- 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 CHANGELOG.md
|
||||||
- prettier -w CHANGELOG.md
|
- prettier -w CHANGELOG.md
|
||||||
image: thegeeklab/alpine-tools
|
|
||||||
name: changelog-format
|
- name: publish-github
|
||||||
- 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
|
||||||
@ -56,22 +63,27 @@ 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:
|
||||||
arch: amd64
|
|
||||||
os: linux
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- image: thegeeklab/drone-docker:19
|
- name: dryrun
|
||||||
name: dryrun
|
image: thegeeklab/drone-docker:19
|
||||||
settings:
|
settings:
|
||||||
dockerfile: docker/Dockerfile.amd64
|
dockerfile: docker/Dockerfile.amd64
|
||||||
dry_run: true
|
dry_run: true
|
||||||
@ -83,8 +95,9 @@ 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
|
||||||
@ -98,8 +111,9 @@ 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
|
||||||
@ -114,22 +128,27 @@ 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:
|
||||||
arch: arm64
|
|
||||||
os: linux
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- image: thegeeklab/drone-docker:19
|
- name: dryrun
|
||||||
name: dryrun
|
image: thegeeklab/drone-docker:19
|
||||||
settings:
|
settings:
|
||||||
dockerfile: docker/Dockerfile.arm64
|
dockerfile: docker/Dockerfile.arm64
|
||||||
dry_run: true
|
dry_run: true
|
||||||
@ -141,8 +160,9 @@ 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
|
||||||
@ -156,8 +176,9 @@ 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
|
||||||
@ -172,22 +193,27 @@ 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:
|
||||||
arch: arm
|
|
||||||
os: linux
|
os: linux
|
||||||
|
arch: arm
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- image: thegeeklab/drone-docker:19
|
- name: dryrun
|
||||||
name: dryrun
|
image: thegeeklab/drone-docker:19
|
||||||
settings:
|
settings:
|
||||||
dockerfile: docker/Dockerfile.arm
|
dockerfile: docker/Dockerfile.arm
|
||||||
dry_run: true
|
dry_run: true
|
||||||
@ -199,8 +225,9 @@ 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
|
||||||
@ -214,8 +241,9 @@ 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
|
||||||
@ -230,24 +258,27 @@ 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:
|
||||||
- build-container-amd64
|
- test
|
||||||
- build-container-arm
|
|
||||||
- build-container-arm64
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: notifications
|
name: notifications
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
arch: amd64
|
|
||||||
os: linux
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- image: plugins/manifest
|
- name: manifest-dockerhub
|
||||||
name: manifest-dockerhub
|
image: plugins/manifest
|
||||||
settings:
|
settings:
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
ignore_missing: true
|
ignore_missing: true
|
||||||
@ -259,8 +290,9 @@ 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
|
||||||
@ -272,7 +304,11 @@ 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:
|
||||||
@ -280,25 +316,24 @@ 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: thegeeklab/drone-matrix
|
||||||
settings:
|
settings:
|
||||||
homeserver:
|
homeserver:
|
||||||
from_secret: matrix_homeserver
|
from_secret: matrix_homeserver
|
||||||
@ -306,15 +341,14 @@ 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
|
template: "Status: **{{ build.Status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}<br/> Message: {{ commit.Message }}"
|
||||||
}}]({{ 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
|
||||||
@ -322,8 +356,14 @@ trigger:
|
|||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build-container-amd64
|
||||||
|
- build-container-arm
|
||||||
|
- build-container-arm64
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 6fbd749273f067a96f12909fd22d46b28fa32bf61a13000ecd04a760f628140d
|
hmac: 143f9d09d77fa20b876a15ac9c120f81c80c7b27aefe9cab7e8e0f92760638a6
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user