test docker build in CI

This commit is contained in:
Qingping Hou 2021-09-19 18:39:28 -07:00
parent aa36d64dce
commit 7857efabba
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -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