4 Commits

Author SHA1 Message Date
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
3 changed files with 65 additions and 2 deletions

57
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,57 @@
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
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
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,6 +1,6 @@
FROM golang:1.15.2-alpine as build FROM golang:1.15.5-alpine as build
ENV DRONE_VERSION=1.9.1 ENV DRONE_VERSION=1.9.2
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 && \

View File

@@ -19,3 +19,9 @@ Otherwise please use official Drone image from [Docker Hub](https://hub.docker.c
## 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
```