Robert Kaussow
7ab5d7bae0
All checks were successful
continuous-integration/drone/push Build is passing
180 lines
3.6 KiB
YAML
180 lines
3.6 KiB
YAML
---
|
|
kind: pipeline
|
|
name: test
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: markdownlint
|
|
image: thegeeklab/markdownlint-cli
|
|
commands:
|
|
- markdownlint 'README.md'
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
- refs/pull/**
|
|
|
|
---
|
|
kind: pipeline
|
|
name: build-container
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: tags
|
|
image: thegeeklab/docker-autotag
|
|
environment:
|
|
DOCKER_AUTOTAG_FORCE_LATEST: True
|
|
DOCKER_AUTOTAG_IGNORE_PRERELEASE: True
|
|
DOCKER_AUTOTAG_OUTPUT_FILE: .tags
|
|
DOCKER_AUTOTAG_VERSION: ${DRONE_TAG}
|
|
|
|
- name: dryrun
|
|
image: thegeeklab/drone-docker-buildx:20
|
|
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}
|
|
provenance: false
|
|
when:
|
|
ref:
|
|
- refs/pull/**
|
|
depends_on:
|
|
- tags
|
|
|
|
- name: publish-dockerhub
|
|
image: thegeeklab/drone-docker-buildx:20
|
|
settings:
|
|
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
|
|
provenance: false
|
|
when:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
depends_on:
|
|
- dryrun
|
|
|
|
- name: publish-quay
|
|
image: thegeeklab/drone-docker-buildx:20
|
|
settings:
|
|
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
|
|
provenance: false
|
|
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: 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 image for nginx HTTP server
|
|
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 }}){{/if}} 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:
|
|
- build-container
|
|
|
|
---
|
|
kind: signature
|
|
hmac: 87845c95059571090b23b0b6efdb5479541a1a229007e55dc3a4bc31c38c6626
|
|
|
|
...
|