7 Commits

Author SHA1 Message Date
Gitea Actions
41a6a2c814 Update manifest version to 1.1.1 [▶️] 2025-12-09 22:01:50 +00:00
f4914652f5 Merge branch 'main' of https://git.icc.gg/ivancarlos/simplebentopdf
Some checks failed
Build, Push, Publish / Build & Release (push) Failing after 9m56s
2025-12-09 19:01:31 -03:00
214b907be1 update universal 2025-12-09 19:00:30 -03:00
909b4895ba Update manifest.json
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 12s
2025-12-09 21:46:54 +00:00
Gitea Actions
a73adedcf2 Update manifest version to 1.1.0 [▶️] 2025-12-09 21:45:58 +00:00
2003b7e522 update universal
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 17s
2025-12-09 18:45:35 -03:00
d72df0a5a8 update universal
Some checks failed
Build, Push, Publish / Build & Release (push) Failing after 9s
2025-12-09 18:43:30 -03:00
2 changed files with 25 additions and 9 deletions

View File

@@ -35,8 +35,11 @@ jobs:
run: | run: |
if [ -f Dockerargs ]; then if [ -f Dockerargs ]; then
echo "Dockerargs found. Checking upstream..." echo "Dockerargs found. Checking upstream..."
REPO_URL=$(git config -f Dockerargs --get repo.url) echo "Dockerargs found. Checking upstream..."
REPO_BRANCH=$(git config -f Dockerargs --get repo.branch || echo "main") # Parse repo info using awk to avoid git config restrictions on underscores in keys elsewhere in the file
REPO_URL=$(awk -F '=' '/\[repo\]/{flag=1; next} /\[/{flag=0} flag && /^url=/{print $2}' Dockerargs | tr -d ' \r\n')
REPO_BRANCH=$(awk -F '=' '/\[repo\]/{flag=1; next} /\[/{flag=0} flag && /^branch=/{print $2}' Dockerargs | tr -d ' \r\n')
if [ -z "$REPO_BRANCH" ]; then REPO_BRANCH="main"; fi
# Fetch upstream SHA # Fetch upstream SHA
if [ -n "$REPO_URL" ]; then if [ -n "$REPO_URL" ]; then
@@ -324,16 +327,25 @@ jobs:
# ----- Docker steps ----- # ----- Docker steps -----
- name: Clone Upstream Code (if needed) - name: Clone Upstream Code (if needed)
if: steps.check_commits.outputs.commit_count != '0' && steps.check_upstream.outputs.upstream_needs_update == 'true' if: steps.check_commits.outputs.commit_count != '0' && (steps.check_upstream.outputs.upstream_needs_update == 'true' || steps.check_upstream.outputs.repo_url != '')
run: | run: |
rm -rf upstream_src rm -rf upstream_src
git clone --depth 1 --branch ${{ steps.check_upstream.outputs.repo_branch }} ${{ steps.check_upstream.outputs.repo_url }} upstream_src git clone --depth 1 --branch ${{ steps.check_upstream.outputs.repo_branch }} ${{ steps.check_upstream.outputs.repo_url }} upstream_src
- name: 🔍 Check if Dockerfile exists - name: 🔍 Check if Dockerfile exists
if: steps.check_commits.outputs.commit_count != '0' || steps.check_upstream.outputs.upstream_needs_update == 'true' if: steps.check_commits.outputs.commit_count != '0' || steps.check_upstream.outputs.upstream_needs_update == 'true'
id: dockerfile_check id: dockerfile_check
run: | run: |
if [ -f Dockerfile ] || [ -f upstream_src/Dockerfile ]; then if [ -n "${{ steps.check_upstream.outputs.repo_url }}" ]; then
if [ -f upstream_src/Dockerfile ]; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
# Fallback or error? User said "ignore", but we need a dockerfile to build.
# Assuming if upstream_src is present, we trust it, or fail at build time.
# Let's say exists=true and let build fail if missing, per user hint.
echo "exists=true" >> "$GITHUB_OUTPUT"
fi
elif [ -f Dockerfile ]; then
echo "exists=true" >> "$GITHUB_OUTPUT" echo "exists=true" >> "$GITHUB_OUTPUT"
else else
echo "exists=false" >> "$GITHUB_OUTPUT" echo "exists=false" >> "$GITHUB_OUTPUT"
@@ -360,12 +372,12 @@ jobs:
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
id: docker_build id: docker_build
with: with:
context: ${{ steps.check_upstream.outputs.upstream_needs_update == 'true' && './upstream_src' || '.' }} context: ${{ steps.check_upstream.outputs.repo_url != '' && './upstream_src' || '.' }}
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
build-args: |
build-args: | build-args: |
${{ steps.check_upstream.outputs.build_args }} ${{ steps.check_upstream.outputs.build_args }}
${{ steps.check_upstream.outputs.repo_url != '' && 'SIMPLE_MODE=true' || '' }}
tags: | tags: |
git.icc.gg/${{ gitea.repository }}:latest git.icc.gg/${{ gitea.repository }}:latest
git.icc.gg/${{ gitea.repository }}:${{ steps.version.outputs.VERSION }} git.icc.gg/${{ gitea.repository }}:${{ steps.version.outputs.VERSION }}

View File

@@ -1 +1,5 @@
{"upstream_sha": "f2e7a1a", "updated_at": "Tue Dec 9 20:29:24 UTC 2025"} {
"version": "1.1.1",
"author": "Ivan Carlos",
"upstream_sha": "c1c6773"
}