mirror of
https://github.com/Mo3he/Axis_Cam_Tailscale.git
synced 2026-10-01 03:55:40 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
51ead4a708 | ||
|
|
123906c98b | ||
|
|
f6999311b7 | ||
|
|
a95415d687 | ||
|
|
7d584d1a22 | ||
|
|
e27f0cdb34 | ||
|
|
e5954eac52 | ||
|
|
91a45be400 | ||
|
|
9b06b49fef | ||
|
|
811aa9e2f5 | ||
|
|
f69a1971a2 |
@@ -1,14 +1,9 @@
|
||||
name: Auto Build & Release Tailscale ACAP
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
force:
|
||||
description: "Force build even if version exists"
|
||||
required: false
|
||||
default: "false"
|
||||
schedule:
|
||||
- cron: '0 6 * * *' # optional: daily at 06:00 UTC
|
||||
- cron: "0 3 * * 1" # Every Monday at 03:00 UTC
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
@@ -29,9 +24,31 @@ jobs:
|
||||
VERSION=${VERSION#v} # remove leading 'v'
|
||||
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Get current repo version
|
||||
id: current
|
||||
run: |
|
||||
CURRENT=$(find . -path "*/app/manifest.json" -exec jq -r '.acapPackageConf.setup.version' {} \; | sort -u | head -n1)
|
||||
echo "CURRENT_VERSION=$CURRENT" >> $GITHUB_ENV
|
||||
echo "Current repo version: $CURRENT"
|
||||
|
||||
- name: Compare versions
|
||||
id: compare
|
||||
run: |
|
||||
echo "Repo version: $CURRENT_VERSION"
|
||||
echo "Latest Tailscale version: $RELEASE_VERSION"
|
||||
|
||||
if [ "$CURRENT_VERSION" = "$RELEASE_VERSION" ]; then
|
||||
echo "build_needed=false" >> $GITHUB_ENV
|
||||
echo "Already up to date. Skipping build."
|
||||
else
|
||||
echo "build_needed=true" >> $GITHUB_ENV
|
||||
echo "New version detected. Will build."
|
||||
fi
|
||||
|
||||
# 3. Download Tailscale binaries
|
||||
- name: Download Tailscale binaries
|
||||
if: env.build_needed == 'true'
|
||||
run: |
|
||||
mkdir -p tailscale_bins
|
||||
curl -L "https://pkgs.tailscale.com/stable/tailscale_${RELEASE_VERSION}_arm.tgz" -o tailscale_arm.tgz
|
||||
@@ -46,6 +63,7 @@ jobs:
|
||||
|
||||
# 4. Build each folder, update manifest, and copy .eap files
|
||||
- name: Build all folders
|
||||
if: env.build_needed == 'true'
|
||||
run: |
|
||||
mkdir -p build
|
||||
mkdir -p releases
|
||||
@@ -64,6 +82,9 @@ jobs:
|
||||
cp tailscale_bins/tailscaled_arm64 "$folder/app/lib/tailscaled"
|
||||
fi
|
||||
|
||||
# Stage updated binaries for commit
|
||||
git add "$folder/app/lib/tailscale" "$folder/app/lib/tailscaled"
|
||||
|
||||
# Detect variant suffix for .eap naming
|
||||
if [[ "$FOLDER_NAME" == *_ROOT ]]; then
|
||||
VARIANT="_root"
|
||||
@@ -102,6 +123,7 @@ jobs:
|
||||
|
||||
# 5. Commit updated manifests and .eap files directly to main
|
||||
- name: Commit updates to main
|
||||
if: env.build_needed == 'true'
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
@@ -116,6 +138,7 @@ jobs:
|
||||
|
||||
# 6. Create GitHub Release with all new .eap files
|
||||
- name: Create GitHub Release
|
||||
if: env.build_needed == 'true'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: v${{ env.RELEASE_VERSION }}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
This ACAP packages the scripts and files required to install the Tailscale VPN client on Axis Cameras.
|
||||
|
||||
Current version 1.84.0
|
||||
|
||||
https://tailscale.com/changelog/
|
||||
|
||||
The "ROOT" versions require root privileges on the camera and will not work on OS 12 up.
|
||||
@@ -14,7 +12,7 @@ If you like my work and want to help me to keep maintaining it, a sponsor would
|
||||
|
||||
## Testers needed
|
||||
|
||||
I have added a new "custom" version (Tailscale_VPN_Custom_1_84_0_aarch64.eap) which allows you to set a custom server and auth key for use of headscale.
|
||||
I have added a new "custom" version which allows you to set a custom server and auth key for use of headscale.
|
||||
|
||||
Click the three dots then "settings" to add your details.
|
||||
If you get a tls error restart the app.
|
||||
@@ -79,7 +77,7 @@ You will need a tailscale.com account to use the ACAP
|
||||
|
||||
## Updating Tailscale version
|
||||
|
||||
The eap files will be updated from time to time and simply installing the new version over the old will update all files.
|
||||
The eap files will be auto built and released every Monday if there is a new version and simply installing the new version over the old will update all files.
|
||||
|
||||
It's also possible to build and use a locally built image as all necesary files are provided.
|
||||
|
||||
@@ -101,14 +99,6 @@ docker build --tag <package name> .
|
||||
docker cp $(docker create <package name>):/opt/app ./build
|
||||
```
|
||||
|
||||
Thanks to wesQ3 there is now also a version in the "all" folder with a script that simplifies the build process with the following changes.
|
||||
|
||||
1. Architecture specific build directories are not required, target arch is now an argument
|
||||
|
||||
2. manifest files are templated as part of the build
|
||||
|
||||
3. Tailscale binaries are downloaded as part of the build
|
||||
|
||||
|
||||
## Star History
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"embeddedSdkVersion": "3.0",
|
||||
"vendorUrl": "https://www.tailscale.com",
|
||||
"runMode": "once",
|
||||
"version": "1.86.2",
|
||||
"version": "1.88.1",
|
||||
"architecture": "aarch64"
|
||||
},
|
||||
"configuration": {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
},
|
||||
"vendorUrl": "https://www.tailscale.com",
|
||||
"runMode": "once",
|
||||
"version": "1.86.2",
|
||||
"version": "1.88.1",
|
||||
"architecture": "aarch64"
|
||||
},
|
||||
"configuration": {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"embeddedSdkVersion": "3.0",
|
||||
"vendorUrl": "https://www.tailscale.com",
|
||||
"runMode": "respawn",
|
||||
"version": "1.86.2"
|
||||
"version": "1.88.1"
|
||||
},
|
||||
"configuration": {
|
||||
"settingPage": "index.html",
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"embeddedSdkVersion": "3.0",
|
||||
"vendorUrl": "https://www.tailscale.com",
|
||||
"runMode": "once",
|
||||
"version": "1.86.2",
|
||||
"version": "1.88.1",
|
||||
"architecture": "armv7hf"
|
||||
},
|
||||
"configuration": {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
},
|
||||
"vendorUrl": "https://www.tailscale.com",
|
||||
"runMode": "once",
|
||||
"version": "1.86.2",
|
||||
"version": "1.88.1",
|
||||
"architecture": "armv7hf"
|
||||
},
|
||||
"configuration": {
|
||||
|
||||
Reference in New Issue
Block a user