Add Gitea Actions workflow and platform/deploy doc updates
Some checks failed
Docker build and push / build-and-push (push) Has been cancelled
Some checks failed
Docker build and push / build-and-push (push) Has been cancelled
- Add .gitea/workflows/docker-build-push.yaml: build api/admin/upload on push to main - Build script: build for linux/amd64 by default (PLATFORM), doc PLATFORM=linux/arm64 - Deploy README: Option A Gitea Actions, Option B manual; proxy timeout troubleshooting Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
# One-time: docker login 10.0.10.205:3000 (username: bert.hausmans, password: token or password).
|
||||
# Usage: ./scripts/docker-build-push.sh [VERSION]
|
||||
# VERSION defaults to "latest" (or git describe --tags --always if available).
|
||||
# Set PLATFORM=linux/arm64 if your Dockge server is ARM (e.g. Raspberry Pi).
|
||||
# Run from project root.
|
||||
|
||||
set -e
|
||||
@@ -18,12 +19,14 @@ else
|
||||
VERSION=$(git describe --tags --always 2>/dev/null || echo "latest")
|
||||
fi
|
||||
|
||||
echo "Building and pushing images with tag: $VERSION"
|
||||
# Build for linux/amd64 so images run on typical Dockge servers (avoid "no matching manifest" on ARM-built images)
|
||||
PLATFORM="${PLATFORM:-linux/amd64}"
|
||||
echo "Building and pushing images with tag: $VERSION (platform: $PLATFORM)"
|
||||
echo "Registry: $REGISTRY, Owner: $OWNER"
|
||||
echo ""
|
||||
|
||||
for name in api admin upload; do
|
||||
docker build -t "$REGISTRY/$OWNER/event-uploader-$name:$VERSION" "$ROOT/$name"
|
||||
docker build --platform "$PLATFORM" -t "$REGISTRY/$OWNER/event-uploader-$name:$VERSION" "$ROOT/$name"
|
||||
docker push "$REGISTRY/$OWNER/event-uploader-$name:$VERSION"
|
||||
if [ "$VERSION" != "latest" ]; then
|
||||
docker tag "$REGISTRY/$OWNER/event-uploader-$name:$VERSION" "$REGISTRY/$OWNER/event-uploader-$name:latest"
|
||||
|
||||
Reference in New Issue
Block a user