updated docker file

This commit is contained in:
2025-10-25 01:27:08 +02:00
parent ad980feee1
commit 7d22c99c84
3 changed files with 18 additions and 16 deletions

View File

@@ -17,14 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: hustcer/setup-nu@v3
- name: Build Docker image
run: |
version=$(nu -c "cargo metadata --format-version=1 --no-deps | from json | get packages | first | get version")
echo $version
- name: Run tests
run: cargo test --verbose
- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: |
cargo publish --verbose
- 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 .