Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
490473af3f | ||
| fbd187441c | |||
| c087594219 | |||
|
|
b06574e78d | ||
| b0a0d81554 | |||
| 2fc8d9239b | |||
|
|
41a6a2c814 | ||
| f4914652f5 | |||
| 214b907be1 | |||
| 909b4895ba |
@@ -327,16 +327,25 @@ jobs:
|
||||
|
||||
# ----- Docker steps -----
|
||||
- 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: |
|
||||
rm -rf upstream_src
|
||||
git clone --depth 1 --branch ${{ steps.check_upstream.outputs.repo_branch }} ${{ steps.check_upstream.outputs.repo_url }} 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
|
||||
|
||||
- name: 🔍 Check if Dockerfile exists
|
||||
if: steps.check_commits.outputs.commit_count != '0' || steps.check_upstream.outputs.upstream_needs_update == 'true'
|
||||
id: dockerfile_check
|
||||
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"
|
||||
else
|
||||
echo "exists=false" >> "$GITHUB_OUTPUT"
|
||||
@@ -363,8 +372,9 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
id: docker_build
|
||||
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
|
||||
file: ${{ steps.check_upstream.outputs.repo_url != '' && './upstream_src/Dockerfile' || './Dockerfile' }}
|
||||
push: true
|
||||
build-args: |
|
||||
${{ steps.check_upstream.outputs.build_args }}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[repo]
|
||||
url=https://github.com/bentoml/bentoctl.git
|
||||
url=https://github.com/alam00000/bentopdf.git
|
||||
branch=main
|
||||
|
||||
[args]
|
||||
|
||||
9
docker/docker-compose.yml
Normal file
9
docker/docker-compose.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
name: pdf
|
||||
|
||||
services:
|
||||
bentopdf:
|
||||
image: git.icc.gg/ivancarlos/simplebentopdf:latest
|
||||
container_name: pdf
|
||||
ports:
|
||||
- '3211:8080'
|
||||
restart: unless-stopped
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"upstream_sha": "c1c6773",
|
||||
"updated_at": "Tue Dec 9 20:29:24 UTC 2025",
|
||||
"version": "1.1.0",
|
||||
"author": "Ivan Carlos"
|
||||
"version": "1.1.3",
|
||||
"author": "Ivan Carlos",
|
||||
"upstream_sha": "f2e7a1a"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user