8 Commits

Author SHA1 Message Date
7d22c99c84 updated docker file 2025-10-25 01:27:08 +02:00
ad980feee1 removed apt install 2025-10-24 23:34:48 +02:00
1b8b8269c6 removed version specifier in setup nushell 2025-10-24 23:33:51 +02:00
afe400036a added nushell setup 2025-10-24 23:32:16 +02:00
4d545ff7c5 added branch to the branches that trigger the docker action 2025-10-24 23:29:52 +02:00
98e11b9da1 getting version in gh actions 2025-10-24 23:28:35 +02:00
89d921299e added whitelist of paths that need to be changed in order to trigger cargo publish 2025-10-24 18:15:40 +02:00
9591ead7ea updated notice in the readme
Some checks failed
Rust / build (push) Has been cancelled
2025-10-24 18:13:04 +02:00
5 changed files with 40 additions and 6 deletions

View File

@@ -1 +1,6 @@
**
!src
!Cargo.toml
!Cargo.lock
!flake.nix
!flake.lock

23
.github/workflows/docker.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Docker
on:
push:
branches: ["main", "feature/docker"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hustcer/setup-nu@v3
- name: Get Cargo version
run: version=$(nu -c "cargo metadata --format-version=1 --no-deps | from json | get packages | first | get version")
- name: Build docker image
run: docker build -t docki:$version .

View File

@@ -3,6 +3,8 @@ name: Rust
on:
push:
branches: [ "main" ]
paths:
- 'Cargo.toml'
pull_request:
branches: [ "main" ]

View File

@@ -1,7 +1,11 @@
FROM rust:slim
FROM nixos/nix AS build
WORKDIR /opt/rust
WORKDIR /app
COPY . /app
RUN nix --extra-experimental-features nix-command --extra-experimental-features flakes build \
&& nix --extra-experimental-features nix-command --extra-experimental-features flakes store gc
RUN mkdir /out && cp result/bin/docki .
RUN apt update \
&& apt-get -y upgrade \
&& apt-get -y install libssl-dev pkg-config

View File

@@ -1,7 +1,7 @@
# Docki
> [!NOTE]
> This project is under renovations. While installing it right now might work, it is not guaranteed
> This project is under renovations. It can be used, but it might not be completely stable yet.
## Preview