From 7857efabba3014c850d4061e6cc85c2c7fba2dc8 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 19 Sep 2021 18:39:28 -0700 Subject: [PATCH] test docker build in CI --- .github/workflows/build.yml | 12 ++++++++++++ Dockerfile | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e63bb7d..b207e89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,3 +65,15 @@ jobs: override: true - name: Run tests run: cargo test --features simd + + docker_build: + name: Docker Image Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build Docker image + uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + with: + context: . + push: false + tags: latest diff --git a/Dockerfile b/Dockerfile index c002536..90d4c69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.53 as builder +FROM rust:1.55 as builder WORKDIR /roapi_src COPY ./ /roapi_src RUN cargo install --locked --path ./roapi-http --bin roapi-http