mastodon/.drone.yml
Sirius 16928e81a9
All checks were successful
continuous-integration/drone/tag Build is passing
Use pvz-Tag as suffix
2023-07-16 18:12:06 +02:00

33 lines
816 B
YAML

---
kind: pipeline
type: docker
name: build
steps:
- name: "Replace version tag"
image: "debian"
commands:
- sed -i s/INSERT_TAG_DURING_BUILD/$( echo $DRONE_TAG | cut -d '-' -f2 )/g lib/mastodon/version.rb
depends_on: ["clone"]
- name: "Build Image"
image: "plugins/docker:20.14.4"
environment:
DOCKER_BUILDKIT: 1
settings:
registry: git.rabbithole.cyou
repo: git.rabbithole.cyou/paravielfalt/mastodon
config:
from_secret: docker_hub_credentials_dockerconfig
username:
from_secret: gitea_docker_registry_username
password:
from_secret: gitea_docker_registry_password
tags:
- "${DRONE_TAG}"
force_tag: true
dockerfile: Dockerfile
depends_on: ["Replace version tag"]
trigger:
event: [tag]