Docker-образ в реестре Gitea (Drone, как у htop-web) и docker-compose.image.yml на нём
continuous-integration/drone/pr Build is passing
continuous-integration/drone/pr Build is passing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+47
@@ -0,0 +1,47 @@
|
||||
# Docker image of reactive-mail-server — like htop-web: Drone builds backend/Dockerfile,
|
||||
# master pushes it to the Gitea container registry of jambotron.com.
|
||||
# pull request -> build only (image is not pushed)
|
||||
# push master -> gitea.jambotron.com/jambotron_gang/reactive-mail-server:latest and :<commit 8>
|
||||
# Drone secrets of this repo: REGISTRY_USERNAME, REGISTRY_PASSWORD (Gitea user with write:package in jambotron_gang)
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-test
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
steps:
|
||||
- name: build-test
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: backend/Dockerfile
|
||||
context: .
|
||||
repo: gitea.jambotron.com/jambotron_gang/reactive-mail-server
|
||||
dry_run: true
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-and-push
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
branch:
|
||||
- master
|
||||
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: backend/Dockerfile
|
||||
context: .
|
||||
registry: gitea.jambotron.com
|
||||
repo: gitea.jambotron.com/jambotron_gang/reactive-mail-server
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
username:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
password:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
Reference in New Issue
Block a user