feat: dockerize application
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-01-09 14:34:27 +01:00
parent d34b7361cb
commit 4557231256
3 changed files with 65 additions and 21 deletions

View File

@@ -7,34 +7,47 @@ platform:
steps:
- name: build-release
image: rust:1.91
image: rust:1.92
commands:
- cargo build --verbose --workspace --release
- name: test
image: rust:1.91
image: rust:1.92
commands:
- cargo test --verbose --workspace
- name: lint
image: rust:1.91
image: rust:1.92
commands:
- rustup component add clippy
- cargo clippy --all-targets --all-features
- name: push-binary-release
image: plugins/gitea-release
- name: format
image: rust:1.92
commands:
- rustup component add rustfmt
- cargo fmt --all -- --check
- name: build-image
image: plugins/docker
settings:
base_url: https://gitea.lardenois.cc
api_key:
from_secret: gitea-package
files:
- target/release/pg-instance-handler
title: "Release ${DRONE_TAG:-v${DRONE_BUILD_NUMBER}}"
note: "Automated release from commit ${DRONE_COMMIT_SHA}"
checksum:
- sha256
repo: gitea.lardenois.cc/jerem/nats-test
tags: latest
dockerfile: Dockerfile
dry_run: "true"
when:
event: tag
status: success
depends_on:
- build-release
- test
- lint
branch:
exclude:
- main
- name: build-and-push-image
image: plugins/docker
settings:
registry: gitea.lardenois.cc
repo: gitea.lardenois.cc/matos-ai/pg-instance-handler
tags:
- latest
dockerfile: Dockerfile
username:
from_secret: GITEA_USER
password:
from_secret: GITEA_PASSWORD
when:
branch:
include:
- main