-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from jdbaldry/jsonnet
refactor: Use Jsonnet instead of CUE for now
- Loading branch information
Showing
85 changed files
with
4,521 additions
and
5,847 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
local pipeline = { | ||
kind: 'pipeline', | ||
platform: { os: 'linux', arch: 'amd64' }, | ||
}; | ||
|
||
local build_image = 'jdbgrafana/haproxy-mixin-build-image:0.0.3'; | ||
|
||
local step = { | ||
check_artifacts: { | ||
name: 'check artifacts', | ||
image: build_image, | ||
commands: [ | ||
'make build', | ||
'git diff --exit-code', | ||
], | ||
}, | ||
}; | ||
[ | ||
pipeline { | ||
name: 'pr', | ||
steps: [ | ||
{ | ||
name: 'check .drone/drone.yml', | ||
image: build_image, | ||
commands: [ | ||
'make .drone/drone.yml', | ||
'git diff --exit-code -- .drone/drone.yml', | ||
], | ||
}, | ||
{ | ||
name: 'check formatting', | ||
image: build_image, | ||
commands: [ | ||
'make fmt', | ||
'git diff --exit-code', | ||
], | ||
}, | ||
step.check_artifacts, | ||
{ | ||
name: 'lint mixin', | ||
image: build_image, | ||
commands: [ | ||
'make lint', | ||
], | ||
}, | ||
], | ||
trigger: { event: { include: ['pull_request'] } }, | ||
}, | ||
pipeline { | ||
name: 'default', | ||
steps: [ | ||
{ | ||
name: 'fmt', | ||
image: build_image, | ||
commands: [ | ||
'make fmt', | ||
], | ||
}, | ||
{ | ||
name: '.drone/drone.yml', | ||
image: build_image, | ||
commands: [ | ||
'make .drone/drone.yml', | ||
], | ||
}, | ||
{ | ||
name: 'build', | ||
image: build_image, | ||
commands: [ | ||
'make build', | ||
], | ||
}, | ||
{ | ||
name: 'lint', | ||
image: build_image, | ||
commands: [ | ||
'make lint', | ||
], | ||
}, | ||
], | ||
trigger: { event: { include: ['custom'] } }, | ||
}, | ||
pipeline { | ||
name: 'release', | ||
steps: [ | ||
step.check_artifacts, | ||
{ | ||
name: 'make dist/haproxy-mixin.tar.gz', | ||
image: build_image, | ||
commands: [ | ||
'make dist/haproxy-mixin.tar.gz', | ||
], | ||
}, | ||
{ | ||
name: 'publish', | ||
image: 'plugins/github-release', | ||
settings: { | ||
api_key: { from_secret: 'github_token' }, | ||
files: 'dist/*', | ||
}, | ||
}, | ||
], | ||
trigger: { event: { include: ['tag'] } }, | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,101 @@ | ||
name: pr | ||
--- | ||
kind: pipeline | ||
name: pr | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
steps: | ||
- name: check .drone/drone.yml | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.2 | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.3 | ||
commands: | ||
- make .drone/drone.yml | ||
- git diff --exit-code -- .drone/drone.yml | ||
|
||
- name: check formatting | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.2 | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.3 | ||
commands: | ||
- make fmt | ||
- git diff --exit-code | ||
|
||
- name: check artifacts | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.2 | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.3 | ||
commands: | ||
- make build | ||
- git diff --exit-code | ||
|
||
- name: lint mixin | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.2 | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.3 | ||
commands: | ||
- make lint | ||
|
||
trigger: | ||
event: | ||
include: | ||
- pull_request | ||
- pull_request | ||
|
||
--- | ||
name: default | ||
kind: pipeline | ||
name: default | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
steps: | ||
- name: fmt | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.2 | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.3 | ||
commands: | ||
- make fmt | ||
|
||
- name: .drone/drone.yml | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.2 | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.3 | ||
commands: | ||
- make .drone/drone.yml | ||
|
||
- name: build | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.2 | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.3 | ||
commands: | ||
- make build | ||
|
||
- name: lint | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.2 | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.3 | ||
commands: | ||
- make lint | ||
|
||
trigger: | ||
event: | ||
include: | ||
- custom | ||
- custom | ||
|
||
--- | ||
name: release | ||
kind: pipeline | ||
name: release | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
steps: | ||
- name: check artifacts | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.2 | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.3 | ||
commands: | ||
- make build | ||
- git diff --exit-code | ||
|
||
- name: make dist/haproxy-mixin.tar.gz | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.2 | ||
image: jdbgrafana/haproxy-mixin-build-image:0.0.3 | ||
commands: | ||
- make dist/haproxy-mixin.tar.gz | ||
|
||
- name: publish | ||
image: plugins/github-release | ||
settings: | ||
files: dist/* | ||
api_key: | ||
from_secret: github_token | ||
files: dist/* | ||
|
||
trigger: | ||
event: | ||
include: | ||
- tag | ||
- tag | ||
|
||
... |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.