Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

ci: add Docker test workflow and `docker:buildx:nopush` script

johaven0cc6a9f69bc7
diff --git a/.github/workflows/release_docker_test.yml b/.github/workflows/release_docker_test.yml
new file mode 100644
index 00000000..00dbba93
--- /dev/null
+++ b/.github/workflows/release_docker_test.yml
@@ -0,0 +1,25 @@
+name: Release Docker Test
+
+on:
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+jobs:
+ docker-build-test:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v6
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v6
+ with:
+ node-version: 24
+
+ - name: Docker Setup Buildx
+ uses: docker/setup-buildx-action@v3
+
+ - name: Docker Build (no push)
+ run: npm run docker:buildx:nopush
diff --git a/package.json b/package.json
index 5c9bd4ea..75b99273 100755
--- a/package.json
+++ b/package.json
@@ -86,6 +86,7 @@
"reset": "rm -Rf frontend/node_modules frontend/.angular backend/node_modules node_modules .angular; npm cache clean --force",
"docker:build": "docker build -t $npm_package_name .",
"docker:buildx": "docker buildx build --platform linux/arm64,linux/amd64 --tag syncin/server:latest --tag syncin/server:${npm_package_version} --tag syncin/server:$(echo ${npm_package_version} | cut -d. -f1) . --push",
+ "docker:buildx:nopush": "docker buildx build --platform linux/arm64,linux/amd64 --tag syncin/server:latest --tag syncin/server:${npm_package_version} --tag syncin/server:$(echo ${npm_package_version} | cut -d. -f1) .",
"docker:buildx:dev": "docker buildx build --platform linux/arm64,linux/amd64 --tag syncin/server:dev . --push",
"docker:start": "docker run --name sync-in -it --rm -e SKIP_INIT=true -p 8080:8080 -v ./environment/environment.yaml:/app/environment/environment.yaml $npm_package_name"
},