Robert Kaussow
2e1c7299c4
All checks were successful
continuous-integration/drone/push Build is passing
279 lines
4.9 KiB
YAML
279 lines
4.9 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-amd64
|
|
|
|
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_SUFFIX: amd64
|
|
DOCKER_AUTOTAG_VERSION: ${DRONE_TAG}
|
|
|
|
- name: dryrun
|
|
image: thegeeklab/drone-docker-buildx
|
|
settings:
|
|
dockerfile: Dockerfile.amd64
|
|
dry_run: true
|
|
password:
|
|
from_secret: docker_password
|
|
platforms:
|
|
- linux/amd64
|
|
repo: thegeeklab/buildx-alpine
|
|
username:
|
|
from_secret: docker_username
|
|
privileged: true
|
|
when:
|
|
ref:
|
|
- refs/pull/**
|
|
depends_on:
|
|
- tags
|
|
|
|
- name: publish-dockerhub
|
|
image: thegeeklab/drone-docker-buildx
|
|
settings:
|
|
dockerfile: Dockerfile.amd64
|
|
password:
|
|
from_secret: docker_password
|
|
repo: thegeeklab/buildx-alpine
|
|
username:
|
|
from_secret: docker_username
|
|
when:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
depends_on:
|
|
- tags
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
- refs/pull/**
|
|
|
|
depends_on:
|
|
- test
|
|
|
|
---
|
|
kind: pipeline
|
|
name: build-container-arm64
|
|
|
|
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_SUFFIX: arm64
|
|
DOCKER_AUTOTAG_VERSION: ${DRONE_TAG}
|
|
|
|
- name: dryrun
|
|
image: thegeeklab/drone-docker-buildx
|
|
settings:
|
|
dockerfile: Dockerfile.arm64
|
|
dry_run: true
|
|
password:
|
|
from_secret: docker_password
|
|
platforms:
|
|
- linux/arm64/v8
|
|
repo: thegeeklab/buildx-alpine
|
|
username:
|
|
from_secret: docker_username
|
|
privileged: true
|
|
when:
|
|
ref:
|
|
- refs/pull/**
|
|
depends_on:
|
|
- tags
|
|
|
|
- name: publish-dockerhub
|
|
image: thegeeklab/drone-docker-buildx
|
|
settings:
|
|
dockerfile: Dockerfile.arm64
|
|
password:
|
|
from_secret: docker_password
|
|
repo: thegeeklab/buildx-alpine
|
|
username:
|
|
from_secret: docker_username
|
|
when:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
depends_on:
|
|
- tags
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
- refs/pull/**
|
|
|
|
depends_on:
|
|
- test
|
|
|
|
---
|
|
kind: pipeline
|
|
name: build-container-arm
|
|
|
|
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_SUFFIX: arm
|
|
DOCKER_AUTOTAG_VERSION: ${DRONE_TAG}
|
|
|
|
- name: dryrun
|
|
image: thegeeklab/drone-docker-buildx
|
|
settings:
|
|
dockerfile: Dockerfile.arm
|
|
dry_run: true
|
|
password:
|
|
from_secret: docker_password
|
|
platforms:
|
|
- linux/arm/v7
|
|
repo: thegeeklab/buildx-alpine
|
|
username:
|
|
from_secret: docker_username
|
|
privileged: true
|
|
when:
|
|
ref:
|
|
- refs/pull/**
|
|
depends_on:
|
|
- tags
|
|
|
|
- name: publish-dockerhub
|
|
image: thegeeklab/drone-docker-buildx
|
|
settings:
|
|
dockerfile: Dockerfile.arm
|
|
password:
|
|
from_secret: docker_password
|
|
repo: thegeeklab/buildx-alpine
|
|
username:
|
|
from_secret: docker_username
|
|
when:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
depends_on:
|
|
- tags
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
- refs/pull/**
|
|
|
|
depends_on:
|
|
- test
|
|
|
|
---
|
|
kind: pipeline
|
|
name: notifications
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: manifest-dockerhub
|
|
image: plugins/manifest
|
|
settings:
|
|
ignore_missing: true
|
|
password:
|
|
from_secret: docker_password
|
|
spec: manifest.tmpl
|
|
username:
|
|
from_secret: docker_username
|
|
when:
|
|
status:
|
|
- success
|
|
|
|
- name: pushrm-dockerhub
|
|
pull: always
|
|
image: chko/docker-pushrm:1
|
|
environment:
|
|
DOCKER_PASS:
|
|
from_secret: docker_password
|
|
DOCKER_USER:
|
|
from_secret: docker_username
|
|
PUSHRM_FILE: README.md
|
|
PUSHRM_SHORT: Rootless Alpine base image
|
|
PUSHRM_TARGET: thegeeklab/buildx-alpine
|
|
when:
|
|
status:
|
|
- success
|
|
|
|
- name: matrix
|
|
image: plugins/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 }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
|
|
username:
|
|
from_secret: matrix_username
|
|
when:
|
|
status:
|
|
- success
|
|
- failure
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
status:
|
|
- success
|
|
- failure
|
|
|
|
depends_on:
|
|
- build-container-amd64
|
|
- build-container-arm64
|
|
- build-container-arm
|
|
|
|
---
|
|
kind: signature
|
|
hmac: c11c306a6ff27ebe6ffe119cda6ec0afd5b8426ccb72c3a71cd6209782634451
|
|
|
|
...
|