Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #123

Merged
merged 38 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5447685
feat: add modules for paperless tags, document types, and correspondents
Jul 27, 2024
6396551
feat: refactor file structure and improve LLM integration
Sep 19, 2024
da463cb
fix(deps): update rust crate reqwest to v0.12.8
renovate[bot] Sep 30, 2024
e1dd59f
fix: error handling and flow of filling default fields
Oct 4, 2024
42f43ca
fix: change prompt to generate more accurate results
Oct 5, 2024
fae6c09
fix(deps): update rust crate serde_json to v1.0.129
renovate[bot] Oct 18, 2024
b4489e2
fix(deps): update rust crate serde_json to v1.0.130
renovate[bot] Oct 18, 2024
a4d69ab
fix(deps): update rust crate serde_json to v1.0.131
renovate[bot] Oct 19, 2024
4967af0
fix(deps): update rust crate serde_json to v1.0.132
renovate[bot] Oct 19, 2024
c62a851
fix(deps): update rust crate serde to v1.0.211
renovate[bot] Oct 22, 2024
759a253
chore(deps): update all minor updates
renovate[bot] Oct 22, 2024
2563c0c
feat!: add support for creating default fields controlled by modes
Oct 22, 2024
c404e65
Merge pull request #110 from B-urb/renovate/all-minor
B-urb Oct 22, 2024
e5577e8
chore(deps): update rust docker tag to v1.82
renovate[bot] Oct 22, 2024
28680b4
fix(deps): update rust crate serde to v1.0.212
renovate[bot] Oct 22, 2024
4f92be2
fix: error handling and logging
Oct 22, 2024
32fb366
Merge pull request #117 from B-urb/feature/default-fields
B-urb Oct 22, 2024
7804ead
fix(deps): update rust crate serde to v1.0.213
renovate[bot] Oct 22, 2024
e265cc6
Merge pull request #115 from B-urb/renovate/all-minor
B-urb Oct 23, 2024
30f2142
feat: add support for creating default fields like tags, corresponden…
Oct 23, 2024
cf48f8c
fix: set correct version during the build phase to be later logged
Oct 23, 2024
5e48079
fix: set correct version during the build phase to be later logged
Oct 23, 2024
0ff53da
Merge pull request #119 from B-urb/fix/log-version-issue
B-urb Oct 23, 2024
0badd03
fix: version workflow
Oct 23, 2024
2806ce0
chore(deps): update actions/upload-artifact action to v4
renovate[bot] Oct 23, 2024
57def98
Merge pull request #11 from B-urb/renovate/major-github-artifact-actions
B-urb Oct 23, 2024
461459b
fix: version workflow
Oct 23, 2024
211f58f
Merge remote-tracking branch 'origin/development' into development
Oct 23, 2024
ad6db47
chore: switch to actively maintained rust action
Oct 23, 2024
922444c
fix: dockerfile argument
Oct 23, 2024
a6d8743
fix: only build docker once
Oct 23, 2024
fe1851f
fix: only build docker once
Oct 23, 2024
05bf7c4
fix: install cargo-edit
Oct 23, 2024
e1a7f68
fix: only build docker once
Oct 23, 2024
a593269
fix: only build docker once
Oct 23, 2024
d58cca1
fix: pipeline versioning scheme
Oct 23, 2024
c6f120d
fix(deps): update rust crate reqwest to v0.12.9
renovate[bot] Oct 28, 2024
b486237
fix(deps): update rust crate serde to v1.0.214
renovate[bot] Oct 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: ${{ matrix.target }}
profile: minimal
override: true
- name: Build
run: cargo build --release --target ${{ matrix.target }}
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: doclytics-${{ env.BRANCH_NAME }}-${{ matrix.os }}
path: |
Expand All @@ -65,13 +63,6 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/doclytics:${{ env.BRANCH_NAME }}
platforms: linux/amd64,linux/arm64
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
Expand All @@ -83,7 +74,10 @@ jobs:
with:
context: .
push: true
tags: ghcr.io/b-urb/doclytics:${{ env.BRANCH_NAME }}
tags: |
ghcr.io/b-urb/doclytics:${{ env.BRANCH_NAME }}
bjoern5urban/doclytics:${{ env.BRANCH_NAME }}

platforms: linux/amd64,linux/arm64
release:
runs-on: ubuntu-latest
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ on:
push:
branches:
- 'v[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+'
env:
CI: true

Expand All @@ -24,16 +26,21 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: ${{ matrix.target }}
profile: minimal
override: true
- name: Install cargo-edit
run: |
cargo install cargo-edit
- name: Update Cargo Version
env:
VERSION: ${{ github.head_ref || github.ref_name }}
run: cargo set-version ${{ env.VERSION }}
- name: Build
run: cargo build --release --target ${{ matrix.target }}
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: doclytics-${{ env.BRANCH_NAME }}-${{ matrix.os }}
path: |
Expand Down Expand Up @@ -86,13 +93,17 @@ jobs:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build and push
env:
VERSION: ${{ github.head_ref || github.ref_name }}
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/doclytics:${{ env.BRANCH_NAME }}
platforms: linux/amd64,linux/arm64
- name: Build and push to GitHub Container Registry
env:
VERSION: ${{ github.head_ref || github.ref_name }}
uses: docker/build-push-action@v6
with:
context: .
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ on:
push:
branches:
- 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
env:
CI: true

Expand All @@ -24,16 +26,21 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: ${{ matrix.target }}
profile: minimal
override: true
- name: Install cargo-edit
run: |
cargo install cargo-edit
- name: Update Cargo Version
env:
VERSION: ${{ github.head_ref || github.ref_name }}
run: cargo set-version ${{ env.VERSION }}
- name: Build
run: cargo build --release --target ${{ matrix.target }}
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.ref }} # Assumes the tag name is the same as the ref. Adjust if necessary.
Expand Down Expand Up @@ -64,6 +71,8 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
env:
VERSION: ${{ github.head_ref || github.ref_name }}
with:
context: .
push: true
Expand All @@ -76,9 +85,11 @@ jobs:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build and push to GitHub Container Registry
env:
VERSION: ${{ github.head_ref || github.ref_name }}
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/b-urb/doclytics:${{ env.BRANCH_NAME }}
tags: ghcr.io/b-urb/doclytics:v${{ env.BRANCH_NAME }}
platforms: linux/amd64,linux/arm64
1 change: 1 addition & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ branches:
- name: "development"
prerelease: "rc"
channel: "false"
tagFormat: "${version}"
30 changes: 15 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "doclytics"
version = "1.1.4-rc.9"
version = "0.0.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FROM rust:1.81
FROM rust:1.82

WORKDIR /usr/doclytics
COPY . .
ARG VERSION
RUN cargo install cargo-edit
RUN cargo set-version ${VERSION}

RUN cargo install --path .


CMD ["doclytics"]
Loading