Skip to content

Commit

Permalink
Merge pull request #5 from owncloud/bugfix/fix-dron-2
Browse files Browse the repository at this point in the history
Cleaning up .drone.star
  • Loading branch information
DeepDiver1975 authored Dec 6, 2019
2 parents de28802 + 5cbc7fc commit ac202d5
Showing 1 changed file with 25 additions and 48 deletions.
73 changes: 25 additions & 48 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -453,18 +407,41 @@ 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',
],
},
{
'name': 'output',
'image': 'toolhippie/calens:latest',
'image': 'webhippie/golang:1.13',
'pull': 'always',
'commands': [
'cat CHANGELOG.md',
Expand Down

0 comments on commit ac202d5

Please sign in to comment.