Skip to content

Commit

Permalink
Use github actions instead of circleci (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
towe75 committed Nov 17, 2019
1 parent 97f02f8 commit 7d49404
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 37 deletions.
24 changes: 0 additions & 24 deletions .circleci/config.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .circleci/machinesetup.sh → .github/machinesetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,3 @@ EOF

systemctl daemon-reload
systemctl start io.podman

# remove default circleci go
cd /usr/local
rm -rf go

# setup go 1.12.x, instead
wget -O- https://storage.googleapis.com/golang/go1.12.13.linux-amd64.tar.gz| tar xfz -
ln -s /usr/local/go/bin/go /usr/bin/go

echo "====== Installed go:"
go version
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build

on: [push]

jobs:
build:

runs-on: ubuntu-16.04

steps:
- uses: actions/checkout@v1

- name: Prepare machine
run: sudo bash -e .github/machinesetup.sh

- name: Compile driver
run: ./build.sh
- name: Archive production artifacts
uses: actions/upload-artifact@v1
with:
name: nomad-driver-podman
path: nomad-driver-podman

- name: Test
run: sudo -E GOPATH=$PWD/build build/bin/gotestsum --junitfile build/test/result.xml -- -timeout=15m .
- name: Archive test result
uses: actions/upload-artifact@v1
with:
name: test-result
path: build/test/result.xml
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ Nomad podman Driver


[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/pascomnet/nomad-driver-podman/blob/master/LICENSE)
[![CircleCI](https://circleci.com/gh/pascomnet/nomad-driver-podman.svg?style=shield)](https://circleci.com/gh/pascomnet/nomad-driver-podman)

![](https://github.com/pascomnet/nomad-driver-podman/workflows/build/badge.svg)

*THIS IS A PROOF OF CONCEPT PLUGIN*. Do not run it in production!
Contributions are welcome, of course.
Expand Down

0 comments on commit 7d49404

Please sign in to comment.