small fixes
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-02-21 23:18:15 +01:00
parent ad4e983068
commit d2aaefcd7f
2 changed files with 48 additions and 19 deletions

View File

@ -11,10 +11,10 @@ local PipelineBuild(arch='amd64') = {
name: 'binary',
image: 'clux/muslrust:nightly-2019-12-19',
environment: {
'DB': 'postgresql',
'DEBIAN_FRONTEND': 'noninteractive',
'LANG': 'C.UTF-8',
'TZ': 'UTC',
DB: 'postgresql',
DEBIAN_FRONTEND: 'noninteractive',
LANG: 'C.UTF-8',
TZ: 'UTC',
},
commands: [
'[ -z "${DRONE_TAG}" ] && BITWARDEN_VERSION=1.13.1 || BITWARDEN_VERSION="${DRONE_TAG##v}"',
@ -30,7 +30,7 @@ local PipelineBuild(arch='amd64') = {
image: 'plugins/docker:' + tag,
settings: {
dry_run: true,
dockerfile: './Dockerfile.' + arch,
dockerfile: 'Dockerfile.' + arch,
repo: 'xoxys/bitwardenrs',
username: { from_secret: 'docker_username' },
password: { from_secret: 'docker_password' },
@ -47,7 +47,7 @@ local PipelineBuild(arch='amd64') = {
settings: {
auto_tag: true,
auto_tag_suffix: arch,
dockerfile: './Dockerfile.' + arch,
dockerfile: 'Dockerfile.' + arch,
repo: 'xoxys/bitwardenrs',
username: { from_secret: 'docker_username' },
password: { from_secret: 'docker_password' },
@ -89,10 +89,20 @@ local PipelineNotifications(depends_on=[]) = {
name: 'manifest',
settings: {
ignore_missing: true,
tags: ['${DRONE_TAG}', '${DRONE_TAG%-*}', '${DRONE_TAG%.*}', '${DRONE_TAG%%.*}'],
tags: [
'${DRONE_TAG}',
'${DRONE_TAG%-*}',
'${DRONE_TAG%.*}',
'${DRONE_TAG%%.*}',
],
username: { from_secret: 'docker_username' },
password: { from_secret: 'docker_password' },
spec: './manifest.tmpl',
spec: 'manifest.tmpl',
},
when: {
status: [
'success',
],
},
},
{
@ -106,19 +116,27 @@ local PipelineNotifications(depends_on=[]) = {
README_PATH: 'README.md',
SHORT_DESCRIPTION: 'Rootless Bitwarden_RS - Self-hosted password manager',
},
when: {
status: [
'success',
],
},
},
{
image: 'plugins/matrix',
name: 'matrix',
image: 'plugins/matrix',
settings: {
homeserver: 'https://matrix.rknet.org',
roomid: 'MtidqQXWWAtQcByBhH:rknet.org',
homeserver: { from_secret: 'matrix_homeserver' },
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' },
password: { from_secret: 'matrix_password' },
},
when: {
status: ['success', 'failure'],
status: [
'success',
'failure',
],
},
},
],
@ -127,7 +145,10 @@ local PipelineNotifications(depends_on=[]) = {
'refs/heads/master',
'refs/tags/**',
],
status: ['success', 'failure'],
status: [
'success',
'failure',
],
},
depends_on: depends_on,
};

View File

@ -25,7 +25,7 @@ steps:
- name: dryrun
image: plugins/docker:linux-amd64
settings:
dockerfile: ./Dockerfile.amd64
dockerfile: Dockerfile.amd64
dry_run: true
password:
from_secret: docker_password
@ -41,7 +41,7 @@ steps:
settings:
auto_tag: true
auto_tag_suffix: amd64
dockerfile: ./Dockerfile.amd64
dockerfile: Dockerfile.amd64
password:
from_secret: docker_password
repo: xoxys/bitwardenrs
@ -80,7 +80,7 @@ steps:
ignore_missing: true
password:
from_secret: docker_password
spec: ./manifest.tmpl
spec: manifest.tmpl
tags:
- ${DRONE_TAG}
- ${DRONE_TAG%-*}
@ -88,6 +88,9 @@ steps:
- ${DRONE_TAG%%.*}
username:
from_secret: docker_username
when:
status:
- success
- name: readme
image: sheogorath/readme-to-dockerhub
@ -100,14 +103,19 @@ steps:
from_secret: docker_username
README_PATH: README.md
SHORT_DESCRIPTION: Rootless Bitwarden_RS - Self-hosted password manager
when:
status:
- success
- name: matrix
image: plugins/matrix
settings:
homeserver: https://matrix.rknet.org
homeserver:
from_secret: matrix_homeserver
password:
from_secret: matrix_password
roomid: MtidqQXWWAtQcByBhH:rknet.org
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
@ -129,6 +137,6 @@ depends_on:
---
kind: signature
hmac: 9c42dee541c8421cf501a2f8e41ccf2b4e46c74584f8038f20b2211e03e9cc73
hmac: 5164600e992db4b554b23132b90d2d9ec998b86b161250a12c06a34896b4fccb
...