This commit is contained in:
@@ -32,16 +32,12 @@ jobs:
|
||||
run: apt update && apt install nodejs pkg-config -y
|
||||
- name: Install docker
|
||||
run: curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
|
||||
# - name: Install Rust
|
||||
# uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# toolchain: nightly
|
||||
# override: true
|
||||
# components: rustfmt, clippy
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v2
|
||||
- name: Run migrations
|
||||
run: cargo install sqlx-cli && sqlx migrate run
|
||||
- name: Build server binary
|
||||
run: cargo build --release
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Log in to Docker Registry
|
||||
|
||||
@@ -1,2 +1,6 @@
|
||||
FROM alpine:latest
|
||||
RUN apk add htop
|
||||
ADD target/release/iot-cloud /iot-cloud
|
||||
|
||||
ENV RUST_LOG=debug
|
||||
|
||||
CMD [ "/iot-cloud" ]
|
||||
Reference in New Issue
Block a user