Skip to content

Commit bf15d8e

Browse files
committed
Publish Docker images under legacy b2500-meter name
Add an optional `legacy-image-name` input to the merge-manifests workflow so the manifest list can be tagged in a second GHCR repository in addition to the primary one. CI now passes `tomquist/b2500-meter` for both the base and the addon merges, so images keep being published at `ghcr.io/tomquist/b2500-meter` and `ghcr.io/tomquist/b2500-meter-addon` for backward compatibility after the rebrand to AstraMeter.
1 parent 4bc34a0 commit bf15d8e

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ jobs:
125125
registry: ghcr.io
126126
image-suffix: ""
127127
digest-prefix: "digests-base-"
128+
legacy-image-name: tomquist/b2500-meter
128129

129130
build-addon:
130131
needs: [ validate ]
@@ -163,3 +164,4 @@ jobs:
163164
registry: ghcr.io
164165
image-suffix: "-addon"
165166
digest-prefix: "digests-addon-"
167+
legacy-image-name: tomquist/b2500-meter

.github/workflows/merge-manifests.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
digest-prefix:
1414
required: true
1515
type: string
16+
legacy-image-name:
17+
required: false
18+
type: string
19+
default: ""
20+
description: "Optional legacy image name (e.g. owner/repo) to publish the same manifest under for backward compatibility"
1621

1722
jobs:
1823
merge:
@@ -32,11 +37,17 @@ jobs:
3237
- id: lower-repo
3338
run: |
3439
echo "IMAGE_NAME=${GITHUB_REPOSITORY@L}${{ inputs.image-suffix }}" >> $GITHUB_OUTPUT
40+
if [ -n "${{ inputs.legacy-image-name }}" ]; then
41+
LEGACY_LOWER=$(echo "${{ inputs.legacy-image-name }}" | tr '[:upper:]' '[:lower:]')
42+
echo "LEGACY_IMAGE_NAME=${LEGACY_LOWER}${{ inputs.image-suffix }}" >> $GITHUB_OUTPUT
43+
fi
3544
- name: Extract metadata
3645
id: meta
3746
uses: docker/metadata-action@v5
3847
with:
39-
images: ${{ inputs.registry }}/${{ steps.lower-repo.outputs.IMAGE_NAME }}
48+
images: |
49+
${{ inputs.registry }}/${{ steps.lower-repo.outputs.IMAGE_NAME }}
50+
${{ inputs.legacy-image-name != '' && format('{0}/{1}', inputs.registry, steps.lower-repo.outputs.LEGACY_IMAGE_NAME) || '' }}
4051
tags: |
4152
type=ref,event=branch
4253
type=ref,event=tag

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog
22

33
## Next
4-
- **Breaking:** Rebrand project from "B2500 Meter" to "AstraMeter" (formerly b2500-meter). Package renamed to `astrameter`, CLI commands are now `astrameter` and `astra-sim`. Docker image moved from `ghcr.io/tomquist/b2500-meter` to `ghcr.io/tomquist/astrameter`. Home Assistant users must update their app repository URL to `https://github.com/tomquist/astrameter#main`.
4+
- **Breaking:** Rebrand project from "B2500 Meter" to "AstraMeter" (formerly b2500-meter). Package renamed to `astrameter`, CLI commands are now `astrameter` and `astra-sim`. Docker image moved from `ghcr.io/tomquist/b2500-meter` to `ghcr.io/tomquist/astrameter` (the legacy `ghcr.io/tomquist/b2500-meter` image is still published in parallel for backward compatibility). Home Assistant users must update their app repository URL to `https://github.com/tomquist/astrameter#main`.
55
- Added CT002/CT003 emulation for steering multiple Marstek storage devices over the Marstek CT UDP protocol, with opt-in efficiency optimization that concentrates power on fewer batteries at low demand and rotates fairly over time (`MIN_EFFICIENT_POWER`, `EFFICIENCY_ROTATION_INTERVAL`, and related tuning options)
66
- Added MQTT Insights: optional `[MQTT_INSIGHTS]` section publishes internal state (grid power, targets, saturation, consumer topology) to MQTT with Home Assistant Device Discovery, per-consumer active/pause control, manual target override, and Shelly battery offline availability; auto-configured in the HA app when Mosquitto is installed
77
- Added HomeWizard P1 powermeter support via the device WebSocket API with optional `VERIFY_SSL` ([#231](https://github.com/tomquist/astrameter/pull/231), [#254](https://github.com/tomquist/astrameter/pull/254))

0 commit comments

Comments
 (0)