14 Commits

Author SHA1 Message Date
1d5cfb9fe7 Update drone to 2.15.0.
Some checks failed
continuous-integration/drone Build is failing
2022-11-23 05:03:24 +05:00
2fcbf929b0 Update to Drone 2.12.1.
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-29 17:45:37 +05:00
9e8b70ddab Switch to mirrorred images for Drone and Dockerfile.
Some checks failed
continuous-integration/drone/push Build is failing
2022-06-29 17:42:34 +05:00
3f39e6deee Go 1.18.3 and Drone 2.12.0. 2022-06-12 11:42:19 +05:00
fbc5facfaa Update to Drone 2.11.1. 2022-04-01 20:03:33 +05:00
399e6d3337 Update to Drone 2.7.3. 2022-01-04 01:36:53 +05:00
0911bbf682 Update Alpine to 3.14 and Drone server to 2.7.2. 2021-12-27 01:42:57 +05:00
31937c2976 README fix. 2021-11-19 02:22:35 +05:00
365bed9654 Go 1.17.3 and Drone 2.5.0. 2021-11-19 01:09:43 +05:00
30f12adb0e Gitlab CI config update. 2020-11-20 18:58:49 +05:00
ddc2b29fec Ooops :). 2020-11-20 18:34:50 +05:00
4d6b9f48a4 Drone 1.9.2 and go 1.15.5. 2020-11-20 18:22:11 +05:00
bf2b8055be Switch to Gitlab. 2020-11-20 18:15:28 +05:00
8719944661 README update about image name. 2020-09-20 15:28:39 +05:00
4 changed files with 78 additions and 11 deletions

View File

@@ -5,11 +5,11 @@ name: build
steps: steps:
- name: docker - name: docker
image: plugins/docker image: code.pztrn.name/containers/mirror/plugins/docker:20.13.0
settings: settings:
username: registry: code.pztrn.name
from_secret: dockerhub_user username: drone
password: password:
from_secret: dockerhub_password from_secret: drone_secret
repo: pztrn/drone-nolimit repo: code.pztrn.name/containers/drone-nolimit
auto_tag: true auto_tag: true

61
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,61 @@
image: docker:19.03.13
services:
- docker:19.03.13-dind
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_TCP_PORT: 2375
DOCKER_TLS_CERTDIR: ""
LOCAL_REGISTRY_IMAGE_LATEST: $CI_REGISTRY_IMAGE:latest
LOCAL_REGISTRY_IMAGE_TAGGED: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
DOCKERHUB_IMAGE_LATEST: pztrn/drone-nolimit:latest
DOCKERHUB_IMAGE_TAGGED: pztrn/drone-nolimit:$CI_COMMIT_TAG
stages:
- build
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker login -u "$DOCKERHUB_USER" -p "$DOCKERHUB_PASSWORD"
- docker info
build-local-registry-latest:
stage: build
tags:
- docker
script:
- docker build --pull -t $LOCAL_REGISTRY_IMAGE_LATEST .
- docker push $LOCAL_REGISTRY_IMAGE_LATEST
only:
- master
build-local-registry-version:
stage: build
tags:
- docker
script:
- docker build --pull -t $LOCAL_REGISTRY_IMAGE_TAGGED .
- docker push $LOCAL_REGISTRY_IMAGE_TAGGED
only:
- tags
build-dockerhub-latest:
stage: build
tags:
- docker
script:
- docker build --pull -t $DOCKERHUB_IMAGE_LATEST .
- docker push $DOCKERHUB_IMAGE_LATEST
only:
- master
build-dockerhub-version:
stage: build
tags:
- docker
script:
- docker build --pull -t $DOCKERHUB_IMAGE_TAGGED .
- docker push $DOCKERHUB_IMAGE_TAGGED
only:
- tags

View File

@@ -1,15 +1,15 @@
FROM golang:1.15.2-alpine as build FROM code.pztrn.name/containers/mirror/golang:1.18.3-alpine as build
ENV DRONE_VERSION=1.9.1 ENV DRONE_VERSION=2.15.0
RUN apk add -U --no-cache ca-certificates git build-base RUN apk add -U --no-cache ca-certificates git build-base
RUN mkdir -p /src/drone && \ RUN mkdir -p /src/drone && \
cd /src/drone && \ cd /src/drone && \
git clone https://github.com/drone/drone . && \ git clone https://github.com/harness/drone . && \
git checkout -b v${DRONE_VERSION} git checkout -b v${DRONE_VERSION}
RUN cd /src/drone/cmd/drone-server && go build -tags "nolimit" -ldflags "-extldflags \"-static\"" -o drone-server RUN cd /src/drone/cmd/drone-server && go build -tags "nolimit" -ldflags "-extldflags \"-static\"" -o drone-server
FROM alpine:3.11 FROM code.pztrn.name/containers/mirror/alpine:3.16.0
EXPOSE 80 443 EXPOSE 80 443
VOLUME /data VOLUME /data

View File

@@ -1,6 +1,6 @@
# Drone without limits # Drone without limits
This repository contains everything that is need to build a Docker image with [drone](https://drone.io) Enterprise version without limits like build numbers. It is completely identical to official ones, e.g. using Alpine Linux and exports same environment variables by default (except Datatog). Runners that are built by Drone team can e safely used with this image. This repository contains everything that is need to build a Docker image with [drone](https://drone.io) Enterprise version without limits like build numbers. It is completely identical to official ones, e.g. using Alpine Linux and exports same environment variables by default (except Datatog). Runners that are built by Drone team can be safely used with this image.
The reason this image appeared is that official Drone image is already on Enterprise version but with limits applied, which isn't good for me, as I am individual and able to use Enterprise version for free and without limits. The reason this image appeared is that official Drone image is already on Enterprise version but with limits applied, which isn't good for me, as I am individual and able to use Enterprise version for free and without limits.
@@ -12,10 +12,16 @@ At the moment of last commit and build only these types of users are allowed to
1. Individuals who uses Drone without commercialization. 1. Individuals who uses Drone without commercialization.
2. Students. 2. Students.
3. Organizations with under $1 million US dollars in annual gross revenue and less than $5 million in debt or equity funding. 3. Organizations with under $1 million US dollars in annual gross revenue.
Otherwise please use official Drone image from [Docker Hub](https://hub.docker.com/r/drone/drone) or [build open source edition by yourself](https://docs.drone.io/enterprise/#where-do-i-download-the-open-source-edition). Differences between Enterprise and Open Source editions are available [here](https://docs.drone.io/enterprise/#what-is-the-difference-between-open-source-and-enterprise). Otherwise please use official Drone image from [Docker Hub](https://hub.docker.com/r/drone/drone) or [build open source edition by yourself](https://docs.drone.io/enterprise/#where-do-i-download-the-open-source-edition). Differences between Enterprise and Open Source editions are available [here](https://docs.drone.io/enterprise/#what-is-the-difference-between-open-source-and-enterprise).
## Installation and usage ## Installation and usage
This image can be used and configured according to [official Drone documentation](https://docs.drone.io/). This image can be used and configured according to [official Drone documentation](https://docs.drone.io/).
The only thing is: use this line for image:
```
pztrn/drone-nolimit:VERSION
```