Files
pg-instance-handler/.drone.yml
JeremyLARDENOIS 4557231256
Some checks failed
continuous-integration/drone/push Build is failing
feat: dockerize application
2026-01-09 14:34:27 +01:00

54 lines
1.0 KiB
YAML

kind: pipeline
type: docker
name: test-on-amd64
platform:
arch: amd64
steps:
- name: build-release
image: rust:1.92
commands:
- cargo build --verbose --workspace --release
- name: test
image: rust:1.92
commands:
- cargo test --verbose --workspace
- name: lint
image: rust:1.92
commands:
- rustup component add clippy
- cargo clippy --all-targets --all-features
- name: format
image: rust:1.92
commands:
- rustup component add rustfmt
- cargo fmt --all -- --check
- name: build-image
image: plugins/docker
settings:
repo: gitea.lardenois.cc/jerem/nats-test
tags: latest
dockerfile: Dockerfile
dry_run: "true"
when:
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