Skip to content

Commit

Permalink
Add docker build test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel authored and dkgupta-amzn committed Oct 3, 2020
1 parent d0f08ee commit 0b8c2c7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Docker Build Test

on:
push:
branches: [ mainline ]
pull_request:
branches: [ mainline ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . -t "ktf:build" -f tools/docker/Dockerfile --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) --build-arg USER=$USER
- name: Run the Docker image
run: docker run -e UNITTEST=1 -v $(pwd):$(pwd) -w $(pwd) "ktf:build" bash -c "make -j clean boot.iso"

0 comments on commit 0b8c2c7

Please sign in to comment.