From f5718d67476d03357c1e7b40e3dc8ad54d86f337 Mon Sep 17 00:00:00 2001 From: Oleksandr Kulkov Date: Wed, 15 May 2024 19:25:02 +0200 Subject: [PATCH] Make test workflow --- .github/workflows/docker-build.yml | 28 ++++++++++++++++++++++++++++ Dockerfile | 1 - 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker-build.yml diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 0000000..8e78a2a --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,28 @@ +name: Docker Build and Test + +on: + push: + branches: + - docker + - main + pull_request: + branches: + - docker + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build Docker image + run: docker build -t build_test . + + - name: Run Docker container + run: docker run --rm build_test diff --git a/Dockerfile b/Dockerfile index 0ef30a4..ccbecc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,5 @@ RUN mkdir build && cd build \ && make -j ENTRYPOINT ["./build/bin/rawhash2"] -CMD ["--help"] LABEL Name=rawhash2 Version=0.0.1