This commit is contained in:
parent
fa7fb69f02
commit
f3290ff6df
22
.drone.yml
Normal file
22
.drone.yml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .
|
||||||
|
|
||||||
|
- name: publish
|
||||||
|
image: techknowlogick/drone-docker:latest
|
||||||
|
privileged: true
|
||||||
|
settings:
|
||||||
|
repo: garionion/gitea-attachements-proxy
|
||||||
|
debug: true
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
tags:
|
||||||
|
- latest
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
FROM alpine:3.14.1 as alpine
|
||||||
|
RUN apk add -U --no-cache ca-certificates
|
||||||
|
FROM alpine:3.14.1
|
||||||
|
EXPOSE 3000
|
||||||
|
LABEL maintainer="dockerhub@enderware.de"
|
||||||
|
ENV GODEBUG netdns=go
|
||||||
|
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
|
ADD gitea-attachements-proxy /bin/
|
||||||
|
ENTRYPOINT ["/bin/gitea-attachements-proxy"]
|
Loading…
Reference in a new issue