1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/sourcehut-mirror-bridge synced 2024-11-21 21:22:20 +00:00
sourcehut-mirror-bridge/.drone.yml

55 lines
1.3 KiB
YAML
Raw Normal View History

2023-11-13 13:20:13 +00:00
---
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
2023-11-13 13:42:59 +00:00
- 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
2023-11-13 13:20:13 +00:00
---
kind: signature
2023-11-13 13:42:59 +00:00
hmac: 6623df92d14170f25a3ae28db0bcbfed09d62300c32eb2fb170ad66f63c581c4
2023-11-13 13:20:13 +00:00
...