Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #681 from rashley-iqt/gh-actions
Browse files Browse the repository at this point in the history
fix: Move from travis ci to github actions
  • Loading branch information
rashley-iqt authored Feb 21, 2020
2 parents a4d5343 + ce41977 commit 933c797
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 30 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docker Build

on: [push, pull_request]

jobs:
buildx:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Change for master
id: change_version
run: if [ "${{ steps.get_version.outputs.VERSION }}" == "master" ]; then echo ::set-output name=VERSION::latest; else echo ::set-output name=VERSION::${{ steps.get_version.outputs.VERSION }}; fi
- name: Set up Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1.0.5
with:
version: latest

- name: Build
env:
DOCKER_CLI_EXPERIMENTAL: enabled
run: |
docker buildx build \
-t cyberreboot/crviz:${{ steps.change_version.outputs.VERSION }} .
docker buildx build \
-f Dockerfile.gh \
-t cyberreboot/crviz-gh:${{ steps.change_version.outputs.VERSION }} .
if: github.repository == 'cyberreboot/crviz'
11 changes: 9 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Node.js CI
name: Unit Tests

on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -21,3 +21,10 @@ jobs:
- run: npm test
env:
CI: true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
if: github.repository == 'cyberreboot/crviz'
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

0 comments on commit 933c797

Please sign in to comment.