Skip to content

Commit

Permalink
switch to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed Feb 9, 2020
1 parent 166bb6c commit 9011fd8
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 20 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build
on: [pull_request, push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: akerl/[email protected]
- name: Submodules
run: git submodule update --init --recursive
- name: Registry auth
run: docker login docker.pkg.github.com -u nobody -p ${{ github.token }}
- name: Make
env:
PKGFORGE_STATEFILE: /tmp/pkgforge
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: make
- name: Release
env:
PKGFORGE_STATEFILE: /tmp/pkgforge
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: startsWith(github.ref, 'refs/tags/')
run: make release
- name: Notify on success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: akerl/[email protected]
with:
channel_id: ${{ secrets.SLACK_BOT_CHANNEL }}
status: success
color: good
- name: Notify on failure
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: akerl/[email protected]
with:
channel_id: ${{ secrets.SLACK_BOT_CHANNEL }}
status: failed
color: danger

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.github
build/initrd.img
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion meta
Submodule meta updated from 035204 to 004ab4

0 comments on commit 9011fd8

Please sign in to comment.