mirror of
https://github.com/roapi/roapi.git
synced 2026-06-05 21:04:02 +08:00
test docker build in CI
This commit is contained in:
parent
aa36d64dce
commit
7857efabba
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user