Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
436ddbb
Init rust version.
pcpl2 Sep 18, 2024
952f2ee
Added basic resize file.
pcpl2 Oct 23, 2024
d83a67e
Added generating hash of id
pcpl2 Oct 23, 2024
6eda387
Small updates.
pcpl2 Apr 4, 2025
63daa95
Added imaage processing with job's and simple getting converted images
pcpl2 Apr 21, 2025
957ba4b
Fixed getting images:
pcpl2 Apr 22, 2025
358b28c
Implemented force image format.
pcpl2 Apr 24, 2025
2803a69
Added convert to formats orginal image size.
pcpl2 Apr 24, 2025
fea3bd5
Updated dockerfile.
pcpl2 May 3, 2025
10214b8
Added workspace extensions.json
pcpl2 May 3, 2025
b2faffb
Added configuration impl.
pcpl2 May 3, 2025
798a16a
Fixed getting default image name
pcpl2 May 3, 2025
1a43f5d
Updated workspace extensions.
pcpl2 May 3, 2025
d98c3d3
Enabled logger.
pcpl2 May 3, 2025
19550f5
Added checking api key and fixed missing use.
pcpl2 May 3, 2025
8dd4064
Small update for readme.
pcpl2 May 3, 2025
b1741ea
Added escaping Id's #20
pcpl2 May 3, 2025
224a779
Updated readme.
pcpl2 May 3, 2025
774e6fc
Fix for image processing #16
pcpl2 May 3, 2025
9bdee30
Small updates.
pcpl2 May 3, 2025
ea56f85
Removed expose 9125 from dockerfile.
pcpl2 May 3, 2025
9276d6d
Added get extension of file by enabled formats.
pcpl2 May 3, 2025
e6c0945
Added saving image time.
pcpl2 May 3, 2025
12ab25f
Updated webp encoder.
pcpl2 May 3, 2025
0bae7b8
Small fixes.
pcpl2 May 3, 2025
aa59a31
Updated formatting.
pcpl2 May 3, 2025
ca3f4d7
Updated actions.
pcpl2 May 4, 2025
fbee736
Small fix.
pcpl2 May 4, 2025
9bc7950
Merge branch 'dev' into refactor/rustVersion
pcpl2 May 4, 2025
5ad588f
Added rust toolchain.
pcpl2 May 4, 2025
ff34251
Updated action name.
pcpl2 May 4, 2025
00a8fde
Added matrix for build binary.
pcpl2 May 4, 2025
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
5 changes: 4 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
.github
.env
.env.example
.git
.git
target/
.vscode
testImages
5 changes: 2 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
API_KEY=00000000-0000-0000-0000-000000000000
API_KEY_HEADER=key
CONVERT_TO_RES=1024x720,800x600
TARGET_FORMATS=jpg,webp,avif
MAX_FILE_SIZE=10
CACHE_TIME=30
EXPVAR_ENABLED=0
PPROF_ENABLED=0
CACHE_TIME=30
15 changes: 8 additions & 7 deletions .github/workflows/BuildAndPublishApp.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Publish new version

on:
workflow_dispatch:
inputs:
version:
description: 'Server version (format: Major.Minor.HotFix, example: 1.2.12)'
required: true
workflow_dispatch:
inputs:
version:
description: 'Server version (format: Major.Minor.HotFix, example: 1.2.12)'
required: true

jobs:
build:
name: Build and publish
Expand Down Expand Up @@ -37,7 +38,7 @@ jobs:
password: ${{ secrets.DH_TOKEN }}

- name: buildDocker
uses: docker/build-push-action@v6.15.0
uses: docker/build-push-action@v6.16.0
with:
context: .
push: true
Expand All @@ -55,7 +56,7 @@ jobs:
uses: actions/checkout@v4.2.2

- name: Create release on github
uses: softprops/action-gh-release@v2.2.1
uses: softprops/action-gh-release@v2.2.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/buildApp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,34 @@ on:
jobs:
build_non_docker:
name: Build non docker version
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- os: ubuntu-24.04
- os: ubuntu-24.04-arm

runs-on: ${{ matrix.os }}

steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2

- name: Set up Go
uses: actions/setup-go@v5.4.0
- name: Set up rust
uses: actions-rust-lang/setup-rust-toolchain@v1.12.0
with:
go-version-file: go.mod
cache-dependency-path: go.sum
toolchain: stable

- name: Update apt
env:
DEBIAN_FRONTEND: noninteractive
run:
sudo apt-get update -qq -o Acquire::Retries=3

- name: Prepare go modules
run: go env -w GO111MODULE=auto CGO_ENABLED=1 GOOS=linux && go get -d -v

- name: Start build script
run: go build -v -ldflags="-w -s -X 'easy-image-cdn.pcpl2lab.ovh/app/build.Version=latest' -X 'easy-image-cdn.pcpl2lab.ovh/app/build.Time=$(date)'" ./...
run: cargo build --bins --release

- name: Run image converter test
run: go test -v ./imageConverter
# - name: Run image converter test
# run: go test -v ./imageConverter

build_docker:
name: Build docker version
Expand All @@ -52,7 +54,7 @@ jobs:
uses: actions/checkout@v4.2.2

- name: buildDocker
uses: docker/build-push-action@v6.15.0
uses: docker/build-push-action@v6.16.0
with:
context: .
push: false
Expand Down
72 changes: 0 additions & 72 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/deploy_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
password: ${{ secrets.DH_TOKEN }}

- name: buildDocker
uses: docker/build-push-action@v6.15.0
uses: docker/build-push-action@v6.16.0
with:
context: .
push: true
Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@ imageCdn
.idea*

easy-image-cdn.pcpl2lab.ovh
__debug_bin*
__debug_bin*

# Added by cargo

/target
output/

.DS_Store
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"rust-lang.rust-analyzer",
"vadimcn.vscode-lldb",
"humao.rest-client"
]
}
39 changes: 33 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,41 @@
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"type": "lldb",
"request": "launch",
"mode": "auto",
"env": {
"CGO_ENABLED": "1"
"name": "Debug executable 'EasyImageCdn'",
"cargo": {
"args": [
"build",
"--bin=EasyImageCdn",
"--package=EasyImageCdn"
],
"filter": {
"name": "EasyImageCdn",
"kind": "bin"
}
},
"program": "${workspaceFolder}"
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'EasyImageCdn'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=EasyImageCdn",
"--package=EasyImageCdn"
],
"filter": {
"name": "EasyImageCdn",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# 0.2.4 (??.??.2025)
# 0.3.0 (??.??.2025)

* Updated fiber to 2.52.6
* Updated go image to 0.26.0
* Updated go version to 1.24
* Rewrited app to Rust
* Added support for avif
* Added conversion job status

# 0.2.3 (27.02.2024)

Expand Down
Loading
Loading