Skip to content

Commit

Permalink
update to github actiions
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Nov 20, 2019
1 parent f180c93 commit 6d5526b
Show file tree
Hide file tree
Showing 9 changed files with 87 additions and 81 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/make-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on: push
name: make all
jobs:
makeall:
name: make all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: make all
uses: docker://golang:latest
with:
entrypoint: bash
args: -c "go get honnef.co/go/tools/cmd/staticcheck && go get golang.org/x/lint/golint && make fmt lint staticcheck vet install"
11 changes: 11 additions & 0 deletions .github/workflows/make-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on: push
name: make image
jobs:
makeimage:
name: make image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: make image
run: make image
shell: bash
29 changes: 29 additions & 0 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
tags:
- v*
name: make release
jobs:
makerelease:
name: make release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: make release
uses: docker://golang:latest
with:
args: make release
- name: upload assets
uses: docker://r.j3ss.co/github-dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
entrypoint: bash
args: -c "upload-assets ./cross/*"
- name: update release body
uses: docker://r.j3ss.co/pepper
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
entrypoint: sh
args: -c "pepper release --repo $GITHUB_REPOSITORY -d --nouser"
11 changes: 11 additions & 0 deletions .github/workflows/make-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on: push
name: make test
jobs:
maketest:
name: make test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: make test
run: DOCKER_API_VERSION=1.39 make dind dtest
shell: bash
15 changes: 15 additions & 0 deletions .github/workflows/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
push:
branches:
- master # Push events on master branch
name: Table of Contents Generator
jobs:
generateTOC:
name: TOC Generator
runs-on: ubuntu-latest
steps:
- name: TOC Generator
uses: technote-space/toc-generator@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET_PATHS: "README.md"
56 changes: 0 additions & 56 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion .traviskey

This file was deleted.

28 changes: 6 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
# reg

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

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

**Table of Contents**

<!-- toc -->

- [Installation](#installation)
+ [Binaries](#binaries)
+ [Via Go](#via-go)
- [Usage](#usage)
* [Auth](#auth)
* [List Repositories and Tags](#list-repositories-and-tags)
* [Get a Manifest](#get-a-manifest)
* [Get the Digest](#get-the-digest)
* [Download a Layer](#download-a-layer)
* [Delete an Image](#delete-an-image)
* [Vulnerability Reports](#vulnerability-reports)
* [Generating Static Website for a Registry](#generating-static-website-for-a-registry)
* [Using Self-Signed Certs with a Registry](#using-self-signed-certs-with-a-registry)
- [Contributing](#contributing)

<!-- tocstop -->
<!-- START doctoc -->
<!-- END doctoc -->

## Installation

Expand Down Expand Up @@ -283,4 +267,4 @@ against an insecure registry.
**OR**

Run `make dind dtest` to avoid having to change your local docker config and
to run the tests as docker-in-docker.
to run the tests as docker-in-docker.
4 changes: 2 additions & 2 deletions basic.mk
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ release: *.go VERSION.txt prebuild ## Builds the cross-compiled binaries, naming
.PHONY: bump-version
BUMP := patch
bump-version: ## Bump the version in the version file. Set BUMP to [ patch | major | minor ].
@$(GO) get -u github.com/jessfraz/junk/sembump # update sembump tool
@$(GO) get -u github.com/jessfraz/junk/sembump || true # update sembump tool
$(eval NEW_VERSION = $(shell sembump --kind $(BUMP) $(VERSION)))
@echo "Bumping VERSION.txt from $(VERSION) to $(NEW_VERSION)"
echo $(NEW_VERSION) > VERSION.txt
Expand All @@ -150,7 +150,7 @@ bump-version: ## Bump the version in the version file. Set BUMP to [ patch | maj
.PHONY: tag
tag: ## Create a new git tag to prepare to build a release.
git tag -sa $(VERSION) -m "$(VERSION)"
@echo "Run git push origin $(VERSION) to push your new tag to GitHub and trigger a travis build."
@echo "Run git push origin $(VERSION) to push your new tag to GitHub and trigger a release."

REGISTRY := r.j3ss.co
.PHONY: image
Expand Down

0 comments on commit 6d5526b

Please sign in to comment.