Skip to content

Commit

Permalink
Add workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kabilar committed Dec 11, 2024
1 parent 8fc30b2 commit 98d7bb1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker-push.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Build and Push Docker Images

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
docker:
docker-push:
runs-on: ubuntu-latest

strategy:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/docker-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build Docker Images

on:
pull_request:
workflow_dispatch:

jobs:
docker-test:
runs-on: ubuntu-latest

strategy:
matrix:
image:
- name: base
dockerfile: Dockerfile
- name: matlab
dockerfile: Dockerfile.matlab
- name: gpu
dockerfile: Dockerfile.gpu
- name: gpu-matlab
dockerfile: Dockerfile.gpu.matlab
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Build Docker Image
uses: docker/build-push-action@v6
with:
context: images
file: ${{ matrix.dockerfile }}
push: false

0 comments on commit 98d7bb1

Please sign in to comment.