actually build container
All checks were successful
Build Project / test (push) Successful in 5m26s

This commit is contained in:
2023-09-25 07:28:16 +00:00
parent 275861ed54
commit 9f71ceb2e8
2 changed files with 7 additions and 7 deletions

View File

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

View File

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