Skip to content

Commit 63afcb7

Browse files
committed
update to github actiions
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
1 parent 64b7184 commit 63afcb7

File tree

18 files changed

+78
-2122
lines changed

18 files changed

+78
-2122
lines changed

.github/workflows/make-all.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on: push
2+
name: make all
3+
jobs:
4+
makeall:
5+
name: make all
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@master
9+
- name: make all
10+
uses: docker://golang:latest
11+
with:
12+
entrypoint: bash
13+
args: -c "go get honnef.co/go/tools/cmd/staticcheck && go get golang.org/x/lint/golint && make all"

.github/workflows/make-image.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on: push
2+
name: make image
3+
jobs:
4+
makeimage:
5+
name: make image
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@master
9+
- name: make image
10+
run: make image
11+
shell: bash

.github/workflows/make-release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
push:
3+
tags:
4+
- v*
5+
name: make release
6+
jobs:
7+
makerelease:
8+
name: make release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: make release
13+
uses: docker://golang:latest
14+
with:
15+
args: make release
16+
- name: upload assets
17+
uses: docker://r.j3ss.co/github-dev
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
entrypoint: bash
22+
args: -c "upload-assets ./cross/*"
23+
- name: update release body
24+
uses: docker://r.j3ss.co/pepper
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
entrypoint: sh
29+
args: -c "pepper release --repo $GITHUB_REPOSITORY -d --nouser"

.github/workflows/toc.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on:
2+
push:
3+
branches:
4+
- master # Push events on master branch
5+
name: Table of Contents Generator
6+
jobs:
7+
generateTOC:
8+
name: TOC Generator
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: TOC Generator
12+
uses: technote-space/toc-generator@v1
13+
with:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
TARGET_PATHS: "README.md"

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.traviskey

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
# magneto
22

3-
[![Travis CI](https://img.shields.io/travis/genuinetools/magneto.svg?style=for-the-badge)](https://travis-ci.org/genuinetools/magneto)
3+
![make-all](https://github.com/genuinetools/magneto/workflows/make%20all/badge.svg)
4+
![make-image](https://github.com/genuinetools/magneto/workflows/make%20image/badge.svg)
45
[![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge)](https://godoc.org/github.com/genuinetools/magneto)
56
[![Github All Releases](https://img.shields.io/github/downloads/genuinetools/magneto/total.svg?style=for-the-badge)](https://github.com/genuinetools/magneto/releases)
67

78
Pipe runc events to a stats TUI (Text User Interface).
89

9-
<!-- toc -->
10-
11-
- [Installation](#installation)
12-
+ [Binaries](#binaries)
13-
+ [Via Go](#via-go)
14-
- [Usage](#usage)
15-
16-
<!-- tocstop -->
10+
<!-- START doctoc -->
11+
<!-- END doctoc -->
1712

1813
## Installation
1914

@@ -61,4 +56,4 @@ Commands:
6156
```
6257

6358
**NOTE:** Almost all this is the exact same as `docker stats`, so thanks to
64-
everyone who made that possible.
59+
everyone who made that possible.

basic.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ release: *.go VERSION.txt prebuild ## Builds the cross-compiled binaries, naming
137137
.PHONY: bump-version
138138
BUMP := patch
139139
bump-version: ## Bump the version in the version file. Set BUMP to [ patch | major | minor ].
140-
@$(GO) get -u github.com/jessfraz/junk/sembump # update sembump tool
140+
@$(GO) get -u github.com/jessfraz/junk/sembump || true # update sembump tool
141141
$(eval NEW_VERSION = $(shell sembump --kind $(BUMP) $(VERSION)))
142142
@echo "Bumping VERSION.txt from $(VERSION) to $(NEW_VERSION)"
143143
echo $(NEW_VERSION) > VERSION.txt
@@ -150,7 +150,7 @@ bump-version: ## Bump the version in the version file. Set BUMP to [ patch | maj
150150
.PHONY: tag
151151
tag: ## Create a new git tag to prepare to build a release.
152152
git tag -sa $(VERSION) -m "$(VERSION)"
153-
@echo "Run git push origin $(VERSION) to push your new tag to GitHub and trigger a travis build."
153+
@echo "Run git push origin $(VERSION) to push your new tag to GitHub and trigger a release."
154154

155155
REGISTRY := r.j3ss.co
156156
.PHONY: image

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ require (
1515
gopkg.in/airbrake/gobrake.v2 v2.0.9 // indirect
1616
gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2 // indirect
1717
)
18+
19+
go 1.13

vendor/golang.org/x/sys/unix/mkpost.go

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)