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

update drone v1.10.1 #2

Open
wants to merge 2 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
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ RUN apk add -U --no-cache ca-certificates
FROM golang as golang

WORKDIR /src
RUN git clone -b v1.10.1 https://github.com/drone/drone.git
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

Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,20 @@ Sample Pipeline Configuration:
username: drone

Documentation and Other Links:

* [Setup Documentation](https://docs.drone.io/installation)
* [Usage Documentation](https://docs.drone.io/getting-started)
* [Plugin Index](https://plugins.drone.io)
* [Getting Help](https://discourse.drone.io)
* [Build the Enterprise Edition](https://github.com/drone/drone/blob/master/BUILDING)
* [Build the Community Edition](https://github.com/drone/drone/blob/master/BUILDING_OSS)

Update steps
```
git checkout -b release/v1.x.x
update `ENV version v1.x.x`
git commit -am "update: drone v1.x.x"
git push --atomic origin release/v1.x.x v1.x.x
updated docker image will be build and push to https://github.com/orgs/kfit-dev/packages/container/package/drone
merge to master to build docker image with latest tag
```