Skip to content

Commit

Permalink
Add a Git Hub workflow to build the container on PRs
Browse files Browse the repository at this point in the history
Add a GH workflow to build the container on PRs to make sure any
changes are in a good state.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information
galak committed Jul 10, 2020
1 parent 5d20666 commit dea4c05
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) 2020 Linaro Limited.
# SPDX-License-Identifier: Apache-2.0

# Git Hub workflow to build docker container on PR to make sure
# any changes to the container still produce a work container

name: Docker Image CI

on: [pull_request]

env:
DOCKER_USER: zephyrprojectrtos
DOCKER_REPO: sdk-build

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build the Docker image
run: docker build . --file Dockerfile --tag docker.io/${DOCKER_USER}/${DOCKER_REPO}:${{ github.sha }}

0 comments on commit dea4c05

Please sign in to comment.