From 5cbc7fc2bce6cbacb55a74fec0f56c39d281a619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Fri, 6 Dec 2019 08:44:43 +0100 Subject: [PATCH] Cleanup drone pipelines --- .drone.star | 73 ++++++++++++++++++----------------------------------- 1 file changed, 25 insertions(+), 48 deletions(-) diff --git a/.drone.star b/.drone.star index f8fba5a71f..3e36a343f3 100644 --- a/.drone.star +++ b/.drone.star @@ -138,29 +138,6 @@ def docker(ctx, arch): 'arch': arch, }, 'steps': [ - { - 'name': 'frontend', - 'image': 'webhippie/nodejs:latest', - 'pull': 'always', - 'commands': [ - 'yarn install --frozen-lockfile', - 'yarn build', - ], - }, - { - 'name': 'generate', - 'image': 'webhippie/golang:1.13', - 'pull': 'always', - 'commands': [ - 'make generate', - ], - 'volumes': [ - { - 'name': 'gopath', - 'path': '/srv/app', - }, - ], - }, { 'name': 'build', 'image': 'webhippie/golang:1.13', @@ -285,29 +262,6 @@ def binary(ctx, name): 'arch': 'amd64', }, 'steps': [ - { - 'name': 'frontend', - 'image': 'webhippie/nodejs:latest', - 'pull': 'always', - 'commands': [ - 'yarn install --frozen-lockfile', - 'yarn build', - ], - }, - { - 'name': 'generate', - 'image': 'webhippie/golang:1.13', - 'pull': 'always', - 'commands': [ - 'make generate', - ], - 'volumes': [ - { - 'name': 'gopath', - 'path': '/srv/app', - }, - ], - }, { 'name': 'build', 'image': 'webhippie/golang:1.13', @@ -453,10 +407,33 @@ def changelog(ctx): 'os': 'linux', 'arch': 'amd64', }, + 'clone': { + 'disable': True, + }, 'steps': [ + { + 'name': 'clone', + 'image': 'plugins/git-action:1', + 'pull': 'always', + 'settings': { + 'actions': [ + 'clone', + ], + 'remote': 'https://github.com/%s' % (ctx.repo.slug), + 'branch': ctx.build.branch if ctx.build.event == 'pull_request' else 'master', + 'path': '/drone/src', + 'netrc_machine': 'github.com', + 'netrc_username': { + 'from_secret': 'github_username', + }, + 'netrc_password': { + 'from_secret': 'github_token', + }, + }, + }, { 'name': 'generate', - 'image': 'toolhippie/calens:latest', + 'image': 'webhippie/golang:1.13', 'pull': 'always', 'commands': [ 'make changelog', @@ -464,7 +441,7 @@ def changelog(ctx): }, { 'name': 'output', - 'image': 'toolhippie/calens:latest', + 'image': 'webhippie/golang:1.13', 'pull': 'always', 'commands': [ 'cat CHANGELOG.md',