mirror of
https://codeberg.org/JasterV/docker.git
synced 2026-04-26 18:10:02 +00:00
[release-plz] Publish release-plz image
This commit is contained in:
parent
e2e0dfd035
commit
9550d7c65e
2 changed files with 37 additions and 0 deletions
16
.woodpecker/publish-release-plz-image.yml
Normal file
16
.woodpecker/publish-release-plz-image.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
when:
|
||||
event: [push, manual]
|
||||
branch: main
|
||||
path: ["release-plz.Dockerfile"]
|
||||
|
||||
steps:
|
||||
publish:
|
||||
image: plugins/kaniko
|
||||
settings:
|
||||
repo: jasterv/release-plz
|
||||
tags: 0.3,latest
|
||||
username:
|
||||
from_secret: DOCKERHUB_USERNAME
|
||||
password:
|
||||
from_secret: DOCKERHUB_PASSWORD
|
||||
dockerfile: release-plz.Dockerfile
|
||||
21
release-plz.Dockerfile
Normal file
21
release-plz.Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
FROM rust:alpine AS builder
|
||||
|
||||
# Install build dependencies for Rust crates
|
||||
RUN apk add --no-cache musl-dev gcc
|
||||
|
||||
# Install release-plz
|
||||
RUN cargo install release-plz --version 0.3.156
|
||||
|
||||
# Final lightweight image
|
||||
FROM alpine:latest
|
||||
|
||||
# Install runtime dependencies (git for repo access, curl for API calls)
|
||||
RUN apk add --no-cache git curl libgcc
|
||||
|
||||
# Copy the binary from the builder stage
|
||||
COPY --from=builder /usr/local/cargo/bin/release-plz /usr/local/bin/release-plz
|
||||
|
||||
# Verify installation
|
||||
RUN release-plz --version
|
||||
|
||||
CMD ["release-plz", "--help"]
|
||||
Loading…
Reference in a new issue