From e621000276436cecda9b87898cc2dde08d850f64 Mon Sep 17 00:00:00 2001 From: NickAc <32451103+NickAcPT@users.noreply.github.com> Date: Mon, 12 Aug 2024 12:15:59 +0100 Subject: [PATCH] Add docker build --- .github/workflows/rust.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 951b6ae..e673b27 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -31,3 +31,22 @@ jobs: - name: Run tests run: cargo test --verbose + + docker_build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + if: contains(github.event.head_commit.message, '[skip ci]') == false + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build docker image + uses: docker/build-push-action@v6 + with: + push: false + context: . \ No newline at end of file