add docker and cicd
continuous-integration/drone/push Build is passing Details

main
garionion 1 year ago
parent fa7fb69f02
commit f3290ff6df

@ -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

@ -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…
Cancel
Save