This commit is contained in:
16
.drone.yml
Normal file
16
.drone.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: https://git.ivasoft.cz
|
||||
username:
|
||||
from_secret: repo_user
|
||||
password:
|
||||
from_secret: repo_pass
|
||||
repo: git.ivasoft.cz/sw/minio-hdd
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_TAG:-latest}
|
||||
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM golang:1.21-bullseye AS builder
|
||||
|
||||
WORKDIR /usr/local/src/minio-hdd
|
||||
COPY go.* ./
|
||||
COPY *.go ./
|
||||
RUN go mod download
|
||||
|
||||
RUN mkdir bin/ && go build -o bin/ ./...
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
COPY --from=builder /usr/local/src/minio-hdd/bin/minio-hdd /
|
||||
|
||||
ENV LOG_LEVEL=""
|
||||
ENV MINIO_VOLUMES=""
|
||||
ENV CYCLE_DELAY=""
|
||||
ENV MAX_MEMORY=""
|
||||
|
||||
ENTRYPOINT ["/minio-hdd"]
|
||||
Reference in New Issue
Block a user