Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 188c5ea

Browse files
Waterdripsalexellis
authored andcommitted
Migrate CI to github Actions
Move from travis to Github Actions for build/test/release Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
1 parent f07a5f7 commit 188c5ea

File tree

6 files changed

+48
-33
lines changed

6 files changed

+48
-33
lines changed

.github/workflows/ci-only.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: ci-only
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
with:
15+
fetch-depth: 1
16+
- name: Make all
17+
run: make all

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@master
13+
with:
14+
fetch-depth: 1
15+
- name: Make all
16+
run: make all
17+
- name: Upload release binaries
18+
uses: alexellis/upload-assets@0.2.2
19+
env:
20+
GITHUB_TOKEN: ${{ github.token }}
21+
with:
22+
asset_paths: '["./bin/ofc*"]'

.travis.yml

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

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ dist:
2727
fmt:
2828
go fmt ./...
2929

30+
.PHONY: hash
31+
hash:
32+
rm -rf bin/*.sha256 && ./hack/hashgen.sh
33+
34+
all: fmt build install-ci ci static dist hash

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
55
How? By automating the whole installation of OpenFaaS Cloud on Kubernetes into a single command and CLI.
66

7-
[![Build Status](https://travis-ci.com/openfaas/ofc-bootstrap.svg?branch=master)](https://travis-ci.com/openfaas/ofc-bootstrap)
8-
7+
[![Build Status](https://github.com/openfaas/ofc-bootstrap/workflows/build/badge.svg?branch=master)](https://github.com/openfaas/ofc-bootstrap/actions)
98
### What is this and who is it for?
109

1110
You can use this tool to configure a Kubernetes cluster with [OpenFaaS Cloud](https://github.com/openfaas/openfaas-cloud). You just need to complete all the pre-requisites and fill out your `init.yaml` file then run the tool. It automates several pages of manual steps using Golang templates and bash scripts so that you can get your own [OpenFaaS Cloud](https://github.com/openfaas/openfaas-cloud) in around 1.5 minutes.

hack/hashgen.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
for f in bin/ofc*; do shasum -a 256 $f > $f.sha256; done

0 commit comments

Comments
 (0)