Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@

All notable changes to this project will be documented in this file.

## 3.1.0 - 2026-03-03

### <!-- 0 -->⬆️ Upstream

* **syncthing**: Bump to 2.0.15

* [Release notes](https://github.com/syncthing/syncthing/releases/tag/v2.0.15)

### <!-- 1 -->🚀 Features

* **scripts**: Fetch latest release from github api for syncthing

### <!-- 2 -->🐛 Bug Fixes

* **readme**: Incorrect image tags in README after a bump

## 3.0.0 - 2026-02-28

### <!-- 0 -->⬆️ Upstream
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV SYNCTHING_USER="syncthing" \
SYNCTHING_GROUP="syncthing" \
SYNCTHING_GROUP_GID=1000 \
SYNCTHING_ADMIN_USER="admin" \
SYNCTHING_VERSION="2.0.14" \
SYNCTHING_VERSION="2.0.15" \
SYNCTHING_ARCH="amd64"

RUN set -x \
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Following arch are missing tests:
## Available image tags

* [nventiveux/syncthing](https://hub.docker.com/r/nventiveux/syncthing)
* `latest`, `v2.0.14` ([Dockerfile](./Dockerfile))
* Image version: `latest`, `3.1.0` ([Dockerfile](./Dockerfile))
* Syncthing version: `v2.0.15`

## Usage

Expand Down Expand Up @@ -109,8 +110,6 @@ Commit changes and submit a **Pull Request**.

### Releasing a new version

Update `SYNCTHING_VERSION` in `Taskfile.yml`.

Bump syncthing version using:

```sh
Expand Down
15 changes: 4 additions & 11 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ silent: true

vars:
DOCKER_IMAGE: "nventiveux/syncthing"
SYNCTHING_VERSION: "2.0.14"

tasks:
bump:
Expand All @@ -15,12 +14,7 @@ tasks:
bump:syncthing:
desc: "Bump syncthing version"
cmds:
- scripts/bump-syncthing.sh {{.SYNCTHING_VERSION}}

build:
desc: "Build the docker image"
cmds:
- docker buildx bake build --set "*.tags=${DOCKER_IMAGE}:dev"
- scripts/bump-syncthing.sh

preview-changelog:
desc: "Preview next changelog"
Expand All @@ -31,16 +25,15 @@ tasks:
desc: "Create a new tag for this release"
prompt: "You are about to create a new release. Continue ?"
cmds:
- scripts/tag.sh {{.SYNCTHING_VERSION}}
- scripts/tag.sh
- echo "Now, push commit with tags (git push origin --tags) to create the release."

tests:
desc: "Build and run the container for testing"
deps: [build]
cmds:
- docker run -it --rm -p 8000:8384 --name syncthing_tests {{.DOCKER_IMAGE}}:dev
- docker run -it --rm -p 8000:8384 --name syncthing_tests {{.DOCKER_IMAGE}}:latest

clean:
desc: "Remove the local docker image"
cmds:
- docker image rm {{.DOCKER_IMAGE}}:dev
- docker image rm {{.DOCKER_IMAGE}}:latest
8 changes: 5 additions & 3 deletions scripts/bump-syncthing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@

set -eu

next_version="${1:?Usage: $0 <next_version>}"

# Checks
if [[ -n $(git status --porcelain) ]]
then
echo "Repo is dirty. Commit all changes first !"
exit 1
fi

# get latest stable version for syncthing
next_version="$(curl -fsSL "https://api.github.com/repos/syncthing/syncthing/releases/latest" | jq -r '.tag_name | ltrimstr("v")')"
echo "Fetched latest stable version: ${next_version}"

# Bump all versions
sed -i -r -e "s/SYNCTHING_VERSION=\".*\"/SYNCTHING_VERSION=\"${next_version}\"/" Dockerfile
sed -i -r -e "s/v[0-9]+\.[0-9]+\.[0-9]+/v${next_version}/" README.md
sed -i -r -e "s/(Syncthing version:.+)\`v[0-9]+\.[0-9]+\.[0-9]+\`/\1\`v${next_version}\`/" README.md

# Prepare commit
git add Dockerfile README.md
Expand Down
5 changes: 4 additions & 1 deletion scripts/bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ then
exit 1
fi

# Bump files
sed -i -r -e "s/(Image version:.+)\`[0-9]+\.[0-9]+\.[0-9]+\`/\1\`${next_version:1}\`/" README.md

# Prepare new changelog
git cliff --bump --output CHANGELOG.md
git add CHANGELOG.md
git add CHANGELOG.md README.md
git commit -m "chore(release): prepare for ${next_version}"