Skip to content

Commit

Permalink
use dedicated buildifier image
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed May 6, 2021
1 parent 0305067 commit 86573f2
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -1687,9 +1687,9 @@ def runWebuiAcceptanceTests(suite, alternateSuiteName, filterTags, extraEnvironm

def redisService():
return [{
'name': 'redis',
'image': 'redis:6-alpine',
'pull': 'always',
"name": "redis",
"image": "redis:6-alpine",
"pull": "always",
}]

def cacheOcisPipeline(ctx):
Expand Down Expand Up @@ -2006,21 +2006,19 @@ def checkStarlark():
"steps": [
{
"name": "format-check-starlark",
"image": "owncloudci/golang:1.16",
"image": "owncloudci/bazel-buildifier",
"pull": "always",
"commands": [
"go install github.com/bazelbuild/buildtools/buildifier@latest",
"buildifier --mode=check /drone/src/.drone.star",
"buildifier --mode=check .drone.star",
],
},
{
"name": "show-diff",
"image": "owncloudci/golang:1.16",
"image": "owncloudci/bazel-buildifier",
"pull": "always",
"commands": [
"go install github.com/bazelbuild/buildtools/buildifier@latest",
"buildifier --mode=fix /drone/src/.drone.star",
"cd /drone/src/ && git diff",
"buildifier --mode=fix .drone.star",
"git diff",
],
"when": {
"status": [
Expand All @@ -2029,7 +2027,7 @@ def checkStarlark():
},
},
],
"depends_on": [],
"depends_on": [],
"trigger": {
"ref": [
"refs/pull/**",
Expand Down

0 comments on commit 86573f2

Please sign in to comment.