Skip to content

Commit

Permalink
drone: mirror the version on master
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Nov 25, 2019
1 parent ecae75a commit ccb7392
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 81 deletions.
2 changes: 1 addition & 1 deletion drone/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This Dockerfile is intended to be used in the CI environment and depends on
# an existing binary built outside Docker.

FROM alpine:3.10.2
FROM alpine:3.10.3

RUN apk add --no-cache ca-certificates
ADD video-transcoding-api /bin/video-transcoding-api
Expand Down
2 changes: 1 addition & 1 deletion drone/ci.jsonnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// the first version is used to build the binary that gets shipped to Docker Hub.
local go_versions = ['1.12.9', '1.11.13', '1.13beta1'];
local go_versions = ['1.13.4', '1.12.13'];

local goproxy = 'https://proxy.golang.org';

Expand Down
92 changes: 13 additions & 79 deletions drone/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# DO NOT MODIFY - AUTO GENERATED

kind: pipeline
name: go-1.12.9
name: go-1.13.4

platform:
os: linux
Expand All @@ -14,7 +14,7 @@ workspace:

steps:
- name: mod-download
image: golang:1.12.9
image: golang:1.13.4
commands:
- go mod download
environment:
Expand All @@ -23,12 +23,12 @@ steps:
- clone

- name: coverage
image: golang:1.12.9
image: golang:1.13.4
commands:
- apt update
- apt install -y redis-server
- "redis-server &>/dev/null &"
- "timeout 10 sh -c \"while ! redis-cli ping; do echo waiting for redis-server to start; sleep 1; done\""
- redis-server &>/dev/null &
- timeout 10 sh -c "while ! redis-cli ping; do echo waiting for redis-server to start; sleep 1; done"
- make gocoverage
depends_on:
- mod-download
Expand All @@ -42,7 +42,7 @@ steps:
- mod-download

- name: build
image: golang:1.12.9
image: golang:1.13.4
commands:
- make build
environment:
Expand Down Expand Up @@ -92,7 +92,7 @@ steps:
from_secret: docker_username
when:
ref:
- "refs/tags/*"
- refs/tags/*
- refs/heads/master
depends_on:
- coverage
Expand All @@ -116,7 +116,7 @@ steps:

---
kind: pipeline
name: go-1.11.13
name: go-1.12.13

platform:
os: linux
Expand All @@ -128,7 +128,7 @@ workspace:

steps:
- name: mod-download
image: golang:1.11.13
image: golang:1.12.13
commands:
- go mod download
environment:
Expand All @@ -137,12 +137,12 @@ steps:
- clone

- name: coverage
image: golang:1.11.13
image: golang:1.12.13
commands:
- apt update
- apt install -y redis-server
- "redis-server &>/dev/null &"
- "timeout 10 sh -c \"while ! redis-cli ping; do echo waiting for redis-server to start; sleep 1; done\""
- redis-server &>/dev/null &
- timeout 10 sh -c "while ! redis-cli ping; do echo waiting for redis-server to start; sleep 1; done"
- make gocoverage
depends_on:
- mod-download
Expand All @@ -156,73 +156,7 @@ steps:
- mod-download

- name: build
image: golang:1.11.13
commands:
- make build
environment:
CGO_ENABLED: 0
when:
event:
- pull_request
- push
depends_on:
- mod-download

- name: test-ci-dockerfile
image: plugins/docker
settings:
dockerfile: drone/Dockerfile
dry_run: true
repo: videodev/video-transcoding-api
when:
event:
- pull_request
depends_on:
- build

---
kind: pipeline
name: go-1.13beta1

platform:
os: linux
arch: amd64

workspace:
base: /go
path: video-transcoding-api

steps:
- name: mod-download
image: golang:1.13beta1
commands:
- go mod download
environment:
GOPROXY: https://proxy.golang.org
depends_on:
- clone

- name: coverage
image: golang:1.13beta1
commands:
- apt update
- apt install -y redis-server
- "redis-server &>/dev/null &"
- "timeout 10 sh -c \"while ! redis-cli ping; do echo waiting for redis-server to start; sleep 1; done\""
- make gocoverage
depends_on:
- mod-download

- name: lint
pull: always
image: golangci/golangci-lint
commands:
- make runlint
depends_on:
- mod-download

- name: build
image: golang:1.13beta1
image: golang:1.12.13
commands:
- make build
environment:
Expand Down

0 comments on commit ccb7392

Please sign in to comment.