Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Release/v2.7.3 #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.key
.env
.env.*
.sum
release/
scripts/*.go
TODO*
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ FROM alpine:3 as alpine
RUN apk add -U --no-cache ca-certificates

FROM golang as golang
ENV version v2.7.3

WORKDIR /src
ENV version v1.10.1
RUN git clone -b $version https://github.com/drone/drone.git

WORKDIR /src/drone
RUN sed -i '/replace github\.com\/h2non\/gock => gopkg\.in\/h2non\/gock\.v1 v1\.0\.14/a replace github\.com\/drone\/drone-ui => github\.com\/kfit-dev\/drone-ui v0\.0\.0-20201103123413-f1f81488f112' go.mod
RUN echo "github.com/kfit-dev/drone-ui v0.0.0-20201103123413-f1f81488f112 h1:JMWXnl9c0ZN2RCW/k8bTNgcysDnV8so9ZPfuLL2PcWU=" >> go.sum
RUN echo "github.com/kfit-dev/drone-ui v0.0.0-20201103123413-f1f81488f112/go.mod h1:5Oz3Nku8f/8PlfFzJQfgkqhOQ+SXFaCPG7Xpta9iGdA=" >> go.sum
RUN go mod download
RUN go build -ldflags "-extldflags '-static'" -tags "oss nolimit" ./cmd/drone-server

RUN go build -ldflags "-extldflags '-static'" -tags "nolimit" ./cmd/drone-server
FROM alpine:3

EXPOSE 80 443
Expand Down