Skip to content

Commit

Permalink
Move CI steps from travis to github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Akos Veres <veres@akos.me>
  • Loading branch information
akosveres authored and alexellis committed Nov 6, 2020
1 parent 9cdb5d6 commit 00a26e5
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 51 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: build

on:
push:
branches: [ master ]

jobs:
build:
strategy:
matrix:
go-version: [1.13.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: build
run: make build
- name: get tools
run: ./contrib/get_tools.sh
- name: lint chart
run: ./contrib/lint_chart.sh
- name: create cluster
run: ./contrib/create_cluster.sh
- name: deploy deploy
run: OPERATOR=0 ./contrib/deploy.sh
- name: run function
run: ./contrib/run_function.sh
- name: stop dev cluster
run: ./contrib/stop_dev.sh
- name: Sleep for 10 seconds
uses: jakejarvis/wait-action@master
with:
time: '10s'
- name: create cluster
run: ./contrib/create_cluster.sh
- name: deploy function
run: OPERATOR=1 ./contrib/deploy.sh
- name: run function
run: OPERATOR=1 ./contrib/run_function.sh
- name: stop dev cluster
run: ./contrib/stop_dev.sh

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
- name: Push containers
uses: docker/build-push-action@v2
with:
outputs: "type=registry,push=true"
platforms: linux/amd64,linux/arm/v6,linux/arm64
tags: |
ghcr.io/openfaas/faas-netes:${{ github.sha }}
ghcr.io/openfaas/faas-netes:latest
47 changes: 0 additions & 47 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
faas-netes - Kubernetes controller for OpenFaaS
===========

[![Build Status](https://travis-ci.com/openfaas/faas-netes.svg?branch=master)](https://travis-ci.com/openfaas/faas-netes)
[![Build Status](https://github.com/openfaas/faas-netes/workflows/build/badge.svg?branch=master)](https://github.com/openfaas/faas-netes/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/openfaas/faas-netes)](https://goreportcard.com/report/github.com/openfaas/faas-netes)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![OpenFaaS](https://img.shields.io/badge/openfaas-serverless-blue.svg)](https://www.openfaas.com)
Expand Down
3 changes: 0 additions & 3 deletions contrib/set_travis_experimental_mode.sh

This file was deleted.

0 comments on commit 00a26e5

Please sign in to comment.