Skip to content

Commit

Permalink
Merge pull request #11 from LLNL/container_test
Browse files Browse the repository at this point in the history
Add a container build test
  • Loading branch information
slyles1001 authored Jan 23, 2025
2 parents 3a6f895 + 7a9e6ee commit cfa98df
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/containerbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Container Build Test
on:
pull_request:
branches:
- main
push:
paths:
- eyeon.Dockerfile

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker Image
run: |
docker buildx build --build-arg "OUN=$(whoami)" --build-arg "USER_ID=$(id -u $OUN)" -f eyeon.Dockerfile --platform linux/amd64 --load -t peyeon:buildx .
- name: Run Test Command
run: |
docker run --rm peyeon:buildx sh -c "eyeon --help"

0 comments on commit cfa98df

Please sign in to comment.