2020-12-09 21:49:45 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: Harbor
|
|
|
|
|
2020-12-10 09:52:38 +00:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2020-12-09 21:49:45 +00:00
|
|
|
steps:
|
2020-12-10 09:49:41 +00:00
|
|
|
- name: clone external repository
|
2020-12-10 09:33:38 +00:00
|
|
|
image: bv11-cr01.bessems.eu/proxy/alpine/git
|
|
|
|
commands:
|
2020-12-10 09:52:38 +00:00
|
|
|
- git clone https://mau.dev/tulir/mautrix-whatsapp.git .
|
2020-12-10 10:47:58 +00:00
|
|
|
# Inject 'apk upgrade' and removal of apk-cache into Dockerfile
|
|
|
|
- sed -e 's|apk add --no-cache .*|apk upgrade --update-cache --available \&\& \\\n & \&\& \\\n rm -rf /var/lib/apt/lists/* \&\& \\\n rm /var/cache/apk/*|g' -i ./Dockerfile
|
2020-12-10 09:33:38 +00:00
|
|
|
|
2020-12-09 21:49:45 +00:00
|
|
|
- name: build & publish
|
|
|
|
image: plugins/docker
|
2020-12-10 09:52:38 +00:00
|
|
|
context: .
|
2020-12-09 21:49:45 +00:00
|
|
|
settings:
|
|
|
|
repo: bv11-cr01.bessems.eu/library/matrixbridge-whatsapp
|
|
|
|
registry: bv11-cr01.bessems.eu
|
|
|
|
tags: latest
|
|
|
|
mtu: 1450
|
|
|
|
username:
|
|
|
|
from_secret: harbor_username
|
|
|
|
password:
|
|
|
|
from_secret: harbor_password
|
|
|
|
# environment:
|
|
|
|
# DOCKER_CONTENT_TRUST: 1
|
|
|
|
# DOCKER_CONTENT_TRUST_SERVER: https://notary.spamasaurus.com
|
|
|
|
# DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE:
|
|
|
|
# from_secret: harbor_repo_passphrase
|
|
|
|
# DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE:
|
2020-12-10 09:52:38 +00:00
|
|
|
# from_secret: harbor_root_passphrase
|