Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
713eb5f
Initial drone support
mattdurham Jun 4, 2021
b0c03bd
Fix drone file
mattdurham Jun 4, 2021
4f7831b
Drone changes
mattdurham Jun 7, 2021
d57c0d9
Added support for drone building
mattdurham Jun 7, 2021
5e4d08e
Echo from makefile
mattdurham Jun 7, 2021
096fe82
Add logging info
mattdurham Jun 7, 2021
5af54bc
Add logging info
mattdurham Jun 7, 2021
025f81a
Add logging info
mattdurham Jun 7, 2021
f4cf85c
Add debugging info
mattdurham Jun 7, 2021
244bb51
Add make debugging info
mattdurham Jun 7, 2021
f046258
Add seego debugging
mattdurham Jun 7, 2021
ba6190b
add ls to see why files arent getting copied
mattdurham Jun 7, 2021
7048075
More debugging
mattdurham Jun 7, 2021
6f781f6
simplify
mattdurham Jun 7, 2021
28b013f
Drone changes
mattdurham Jun 22, 2021
a9c683e
Drone v2
mattdurham Jul 2, 2021
cb56cfa
Remove invalid files
mattdurham Jul 2, 2021
df55cc2
Fix freebsd build
mattdurham Jul 2, 2021
9a79616
Setting up tokens
mattdurham Jul 7, 2021
1f7a85d
Removing windows build output
mattdurham Jul 7, 2021
e22211c
Fix for docker builds
mattdurham Jul 7, 2021
995732f
Remove containerize no docker
mattdurham Jul 7, 2021
643bd8c
Make buildx single threaded
mattdurham Jul 7, 2021
9a485d6
Building against personal docker account
mattdurham Jul 7, 2021
a4ec0f4
Merge changes
mattdurham Jul 8, 2021
656a89a
Remove exe
mattdurham Jul 8, 2021
71424e9
Removed V6 temporarily to see if fixed
mattdurham Jul 8, 2021
f3cc2bc
Removed extra steps
mattdurham Jul 8, 2021
397ab83
Signed yaml
mattdurham Jul 8, 2021
07531e3
Fix makefile
mattdurham Jul 8, 2021
6c48581
Fix tag
mattdurham Jul 8, 2021
d8d8e17
Using drone tag
mattdurham Jul 8, 2021
fffbf3a
Fix drone tag
mattdurham Jul 8, 2021
014ffb2
Fix drone issues
mattdurham Jul 8, 2021
39a6f6c
Fix docker not being available
mattdurham Jul 8, 2021
2aded66
Set build in container flag
mattdurham Jul 8, 2021
9cd2bb4
fix
mattdurham Jul 8, 2021
2313038
fix
mattdurham Jul 9, 2021
b44451b
fix
mattdurham Jul 11, 2021
548d93a
remove dead code
mattdurham Jul 11, 2021
aeb1820
comments
mattdurham Jul 12, 2021
525f0f6
sign
mattdurham Jul 12, 2021
ce1bfa0
Merge remote-tracking branch 'origin/main' into drone
mattdurham Jul 12, 2021
96e1799
comments
mattdurham Jul 12, 2021
d211d6c
comments
mattdurham Jul 12, 2021
1ae2949
comments
mattdurham Jul 12, 2021
73ee17b
comments
mattdurham Jul 12, 2021
36f1e61
comments
mattdurham Jul 12, 2021
ae16bf0
comments
mattdurham Jul 12, 2021
2776ba0
comments
mattdurham Jul 12, 2021
b2b358d
comments
mattdurham Jul 13, 2021
8495ad8
comments
mattdurham Jul 13, 2021
e0f72a2
Update changelog
mattdurham Jul 13, 2021
d128597
comments
mattdurham Jul 13, 2021
d656dba
test build
mattdurham Jul 13, 2021
c82b874
test build
mattdurham Jul 13, 2021
a246bf5
test build
mattdurham Jul 13, 2021
4bf2028
test build
mattdurham Jul 13, 2021
ed06d3a
test build
mattdurham Jul 13, 2021
9efcada
test build
mattdurham Jul 13, 2021
1728826
test build
mattdurham Jul 13, 2021
2955258
test build
mattdurham Jul 13, 2021
487d9a2
Merge remote-tracking branch 'origin/main' into drone
mattdurham Jul 13, 2021
a068161
test build
mattdurham Jul 13, 2021
9dae635
test build
mattdurham Jul 13, 2021
a70f516
Cleanup
mattdurham Jul 13, 2021
542aafe
Remove release.key
mattdurham Jul 13, 2021
145e448
Fix for windows installer build
mattdurham Jul 13, 2021
aaec782
Allow windows installer builds
mattdurham Jul 13, 2021
15b8d50
Merge branch 'drone' of github.com:grafana/agent into drone
mattdurham Jul 14, 2021
93f0709
Simplify makefile
mattdurham Jul 19, 2021
69bfaf8
Remove unused files
mattdurham Jul 19, 2021
a56ccd8
Add test back to github
mattdurham Jul 19, 2021
864647e
Fix normal makes
mattdurham Jul 19, 2021
856634a
Reorder changelog
mattdurham Jul 19, 2021
cf2b225
Fix arm64
mattdurham Jul 19, 2021
310f92b
Arm fix
mattdurham Jul 19, 2021
b85a25b
Remove comment lines
mattdurham Jul 19, 2021
941c182
rename governance
mattdurham Jul 19, 2021
4909d48
use seego
mattdurham Jul 19, 2021
45363ef
Simplify seego usage
mattdurham Jul 20, 2021
c427997
include fix for test
mattdurham Jul 20, 2021
a7f35c2
Fix for dout
mattdurham Jul 20, 2021
f0f485e
Only build docker container if needed
mattdurham Jul 20, 2021
787e70a
Add depends on
mattdurham Jul 20, 2021
cf0d0f4
Fix naming
mattdurham Jul 20, 2021
6c04898
Unsilent any remaining output
mattdurham Jul 20, 2021
dd9b894
unsilent
mattdurham Jul 20, 2021
d22fbe1
Remove check-seego and switch to using docker by default
mattdurham Jul 20, 2021
36270ac
Change triggers
mattdurham Jul 20, 2021
368be32
rename master to main
mattdurham Jul 20, 2021
3bdf0d6
Fix dependency order now that Dist only triggers on tags
mattdurham Jul 20, 2021
c10d86a
Sign drone
mattdurham Jul 20, 2021
891f416
mount local go mod cache to seego if one exists
rfratto Jul 20, 2021
d6faab2
Clean up triggers
mattdurham Jul 20, 2021
2ba55dc
Merge branch 'drone' of github.com:grafana/agent into drone
mattdurham Jul 20, 2021
4c4107d
Add trigger to dist
mattdurham Jul 20, 2021
7ab5d4c
testing change for synchronized
mattdurham Jul 20, 2021
b4b1e57
testing change for synchronized
mattdurham Jul 20, 2021
552b457
Undo changeS
mattdurham Jul 20, 2021
292281a
sign drone
mattdurham Jul 20, 2021
3c424b6
Prevent double build
mattdurham Jul 20, 2021
c445764
remove extra check
mattdurham Jul 20, 2021
cc36e4e
deduplicate build
mattdurham Jul 20, 2021
1a779e2
deduplicate build
mattdurham Jul 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 176 additions & 0 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
---
kind: pipeline
name: Lint
platform:
os: linux
arch: amd64
trigger:
event:
- push
- pull_request
- tag
ref:
- refs/heads/main
- refs/pull/*/head
- refs/tags/**

steps:
- name: lint
image: golangci/golangci-lint:v1.37.1
commands:
- apt-get update -y && apt-get install -y libsystemd-dev
- make lint

---
kind: pipeline
type: docker
name: Test
platform:
os: linux
arch: amd64
trigger:
event:
- push
- pull_request
- tag
ref:
- refs/heads/main
- refs/pull/*/head
- refs/tags/**

steps:
- name: test
image: rfratto/seego
commands:
- apt-get update && apt-get install -y rubygems rpm nsis apt-transport-https ca-certificates curl gnupg lsb-release
- gem install --no-document fpm
- mkdir -p /usr/local/go/bin
- wget -q https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
- rm go1.16.5.linux-amd64.tar.gz

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: since this isn't a Dockerfile we probably don't have to remove the tarball, though it doesn't really matter to me if we leave this in or not.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its really annoying with drone =) If you run multiple drone instances it created a ton of .gz files that sit around.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, gotcha 👍

- export PATH=$PATH:/usr/local/go/bin
- make DRONE=true BUILD_IN_CONTAINER=false test
depends_on:
- Lint

---
kind: pipeline
type: docker
name: Dist
platform:
os: linux
arch: amd64
trigger:
ref:
- refs/tags/v*

steps:
- name: distribute
image: rfratto/seego
commands:
- apt-get update && apt-get install -y rubygems rpm nsis
- gem install --no-document fpm
- mkdir -p /usr/local/go/bin
- wget -q https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
- rm go1.16.5.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- make DRONE=true BUILD_IN_CONTAINER=false RELEASE_TAG=v0.0.0 dist
depends_on:
- Test
---
kind: pipeline
type: docker
name: Containerize
platform:
os: linux
arch: amd64
trigger:
ref:
- refs/heads/main
- refs/tags/v*

steps:
- name: Build Containers
image: docker
volumes:
- name: docker
path: /var/run/docker.sock
environment:
DOCKER_LOGIN:
from_secret: DOCKER_LOGIN
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
commands:
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- apk update && apk add make bash wget git qemu
- wget -q https://github.com/docker/buildx/releases/download/v0.5.1/buildx-v0.5.1.linux-amd64
- mkdir -p ~/.docker/cli-plugins
- cp buildx-v0.5.1.linux-amd64 ~/.docker/cli-plugins/docker-buildx
- chmod a+x ~/.docker/cli-plugins/docker-buildx
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --name multiarch --driver docker-container --use
- make DRONE=true CROSS_BUILD=true RELEASE_BUILD=true agent-image
- make DRONE=true CROSS_BUILD=true RELEASE_BUILD=true agentctl-image
- docker buildx rm multiarch


depends_on:
- Lint

volumes:
- name: docker
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: Release
platform:
os: linux
arch: amd64
trigger:
ref:
- refs/tags/v*

steps:
- name: create-release
image: rfratto/seego
volumes:
- name: docker
path: /var/run/docker.sock
environment:
DOCKER_LOGIN:
from_secret: DOCKER_LOGIN
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
GITHUB_TOKEN:
from_secret: GITHUB_KEY
commands:
- apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
- curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian buster stable"
- apt-get update && apt-get install -y rubygems rpm nsis docker-ce docker-ce-cli containerd.io
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- gem install --no-document fpm
- mkdir -p /usr/local/go/bin
- wget -q https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
- rm go1.16.5.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- GO111MODULE=on go get -u github.com/mitchellh/gox github.com/tcnksm/ghr
- export PATH="$(go env GOPATH)/bin:$PATH"
- RELEASE_TAG=$DRONE_TAG
- make -j4 BUILD_IN_CONTAINER=false RELEASE_BUILD=true RELEASE_TAG=$RELEASE_TAG publish
depends_on:
- Dist

volumes:
- name: docker
host:
path: /var/run/docker.sock
---
kind: signature
hmac: 13ae086c4ff0380f263dc4e3e7289bb82b0130e266cd6763e75cf0e451928225

...
81 changes: 0 additions & 81 deletions .github/workflows/containerize.yml

This file was deleted.

131 changes: 0 additions & 131 deletions .github/workflows/release.yml

This file was deleted.

Loading