mirror of
https://git.sr.ht/~ashkeel/sourcehut-mirror-bridge
synced 2024-11-23 21:32:20 +00:00
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: publish sha
|
|
image: banzaicloud/drone-kaniko
|
|
settings:
|
|
registry: registry.fromouter.space
|
|
repo: uchumoe/sourcehut-mirror-bridge
|
|
cache: true
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
tags:
|
|
- latest
|
|
- ${DRONE_COMMIT_SHA}
|
|
when:
|
|
event:
|
|
- push
|
|
|
|
- name: publish tag
|
|
image: banzaicloud/drone-kaniko
|
|
settings:
|
|
registry: registry.fromouter.space
|
|
repo: uchumoe/sourcehut-mirror-bridge
|
|
cache: true
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
tags:
|
|
- ${DRONE_COMMIT_BRANCH}
|
|
when:
|
|
event:
|
|
- tag
|
|
|
|
- name: update deployment
|
|
image: ghcr.io/hamcha/shipit:main
|
|
environment:
|
|
SHIPIT_PROVIDER:
|
|
from_secret: shipit_provider
|
|
SHIPIT_CHANGES: '[{"templater":"yaml","file":"docker-compose.yml","changes":{"services.srht-mirror.image":"registry.fromouter.space/uchumoe/sourcehut-mirror-bridge:${DRONE_COMMIT_SHA}"}}]'
|
|
SHIPIT_BRANCH: master
|
|
when:
|
|
event:
|
|
- push
|
|
---
|
|
kind: signature
|
|
hmac: 6623df92d14170f25a3ae28db0bcbfed09d62300c32eb2fb170ad66f63c581c4
|
|
|
|
...
|