Skip to content

Commit

Permalink
cheange to github actions
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 afce1b5 commit a0ef385
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 47 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 all"
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/amicontained
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
entrypoint: sh
args: -c "amicontained release --repo $GITHUB_REPOSITORY -d --nouser"
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: "."
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion .traviskey

This file was deleted.

1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ COPY --from=builder /usr/bin/amicontained /usr/bin/amicontained
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs

ENTRYPOINT [ "amicontained" ]
CMD [ "--help" ]
21 changes: 5 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
# amicontained

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

Container introspection tool. Find out what container runtime is being used as
well as features available.

<!-- toc -->

- [Installation](#installation)
+ [Binaries](#binaries)
+ [Via Go](#via-go)
- [Usage](#usage)
- [Examples](#examples)
+ [docker](#docker)
+ [lxc](#lxc)
+ [systemd-nspawn](#systemd-nspawn)
+ [rkt](#rkt)
+ [unshare](#unshare)

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

## Installation

Expand Down Expand Up @@ -179,4 +168,4 @@ User Namespace Mappings:
AppArmor Profile: unconfined
Capabilities:
BOUNDING -> chown dac_override dac_read_search fowner fsetid kill setgid setuid setpcap linux_immutable net_bind_service net_broadcast net_admin net_raw ipc_lock ipc_owner sys_module sys_rawio sys_chroot sys_ptrace sys_pacct sys_admin sys_boot sys_nice sys_resource sys_time sys_tty_config mknod lease audit_write audit_control setfcap mac_override mac_admin syslog wake_alarm block_suspend audit_read
```
```
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 a0ef385

Please sign in to comment.