Skip to content

Commit 6d5526b

Browse files
committed
update to github actiions
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
1 parent f180c93 commit 6d5526b

File tree

9 files changed

+87
-81
lines changed

9 files changed

+87
-81
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 fmt lint staticcheck vet install"

.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/make-test.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 test
3+
jobs:
4+
maketest:
5+
name: make test
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@master
9+
- name: make test
10+
run: DOCKER_API_VERSION=1.39 make dind dtest
11+
shell: bash

.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 & 56 deletions
This file was deleted.

.traviskey

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

README.md

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,15 @@
11
# reg
22

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

79
Docker registry v2 command line client and repo listing generator with security checks.
810

9-
**Table of Contents**
10-
11-
<!-- toc -->
12-
13-
- [Installation](#installation)
14-
+ [Binaries](#binaries)
15-
+ [Via Go](#via-go)
16-
- [Usage](#usage)
17-
* [Auth](#auth)
18-
* [List Repositories and Tags](#list-repositories-and-tags)
19-
* [Get a Manifest](#get-a-manifest)
20-
* [Get the Digest](#get-the-digest)
21-
* [Download a Layer](#download-a-layer)
22-
* [Delete an Image](#delete-an-image)
23-
* [Vulnerability Reports](#vulnerability-reports)
24-
* [Generating Static Website for a Registry](#generating-static-website-for-a-registry)
25-
* [Using Self-Signed Certs with a Registry](#using-self-signed-certs-with-a-registry)
26-
- [Contributing](#contributing)
27-
28-
<!-- tocstop -->
11+
<!-- START doctoc -->
12+
<!-- END doctoc -->
2913

3014
## Installation
3115

@@ -283,4 +267,4 @@ against an insecure registry.
283267
**OR**
284268

285269
Run `make dind dtest` to avoid having to change your local docker config and
286-
to run the tests as docker-in-docker.
270+
to run the tests as docker-in-docker.

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

0 commit comments

Comments
 (0)