testing build workflow
This commit is contained in:
16
.gitea/workflows/build_docker.yml
Normal file
16
.gitea/workflows/build_docker.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
name: Build and push Docker image
|
||||
|
||||
env:
|
||||
CARGO_COLOR_TERM: always
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["master", "dev"]
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: kubernetes
|
||||
|
||||
steps:
|
||||
- run: echo "what this wasn't a hallucination!!!"
|
||||
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM rust:1.91.1-bookworm AS builder
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN cargo build --release
|
||||
|
||||
FROM debian:12-slim
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/target/release/stdsrv .
|
||||
CMD ["./stdsrv"]
|
||||
Reference in New Issue
Block a user