From 10a12680ca480bc6a53e7b5bda46f757e2392688 Mon Sep 17 00:00:00 2001 From: umarizulkifli Date: Wed, 15 Sep 2021 13:54:05 +0800 Subject: [PATCH 1/2] add: version env --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0d81f417283..f8eb3b2493b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 From 51fa03e77b3d2b17e4fc37bf208205c5736e6b90 Mon Sep 17 00:00:00 2001 From: umarizulkifli Date: Fri, 1 Oct 2021 01:46:23 +0800 Subject: [PATCH 2/2] update: README.md --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a10f6d72e6..3f2c0495b56 100644 --- a/README.md +++ b/README.md @@ -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 +```