Skip to content

Commit 2ad3944

Browse files
authored
chore: update self-host image release references (#4136)
## Summary Stable v4 Docker image builds now also publish `v4` and `latest` tags, giving Docker-based self-hosters a maintained floating tag to use after a stable release. The Kubernetes guide now uses the current Helm chart line and current pinned examples, so new installs and upgrades resolve to the 4.5 chart line instead of the 4.0 line. ## Design The publish workflows add the floating tags only for stable `v4.x.x` image tags. Prerelease and `main` builds keep their existing tags.
1 parent a93b101 commit 2ad3944

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/publish-webapp.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ jobs:
7676
# therefore publishes to its own package automatically.
7777
image_tags=$REF_WITHOUT_TAG:${STEPS_GET_TAG_OUTPUTS_TAG}
7878
79+
if [[ "${STEPS_GET_TAG_OUTPUTS_TAG}" =~ ^v4\.[0-9]+\.[0-9]+$ ]]; then
80+
image_tags=$image_tags,$REF_WITHOUT_TAG:v4,$REF_WITHOUT_TAG:latest
81+
fi
82+
7983
# when pushing the mutable main tag, also push an immutable-by-convention
8084
# full-commit-sha tag so a commit can be resolved to a specific digest
8185
if [[ "${STEPS_GET_TAG_OUTPUTS_TAG}" == "main" ]]; then

.github/workflows/publish-worker-v4.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ jobs:
7676
ref_without_tag=${IMAGE_REGISTRY}/${STEPS_GET_REPOSITORY_OUTPUTS_REPO}
7777
image_tags=$ref_without_tag:${STEPS_GET_TAG_OUTPUTS_TAG}
7878
79+
if [[ "${STEPS_GET_TAG_OUTPUTS_TAG}" =~ ^v4\.[0-9]+\.[0-9]+$ ]]; then
80+
image_tags=$image_tags,$ref_without_tag:v4,$ref_without_tag:latest
81+
fi
82+
7983
echo "image_tags=${image_tags}" >> "$GITHUB_OUTPUT"
8084
env:
8185
IMAGE_REGISTRY: ${{ inputs.image_registry || vars.IMAGE_REGISTRY || format('ghcr.io/{0}', github.repository_owner) }}

docs/self-hosting/kubernetes.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ webapp:
6161
```bash
6262
helm upgrade -n trigger --install trigger \
6363
oci://ghcr.io/triggerdotdev/charts/trigger \
64-
--version "~4.0.0" \
64+
--version "^4.5.0" \
6565
--create-namespace
6666
```
6767

@@ -107,11 +107,11 @@ The following commands will display the default values:
107107
```bash
108108
# Specific version
109109
helm show values oci://ghcr.io/triggerdotdev/charts/trigger \
110-
--version "4.0.5"
110+
--version "4.5.0"
111111

112112
# Latest v4
113113
helm show values oci://ghcr.io/triggerdotdev/charts/trigger \
114-
--version "~4.0.0"
114+
--version "^4.5.0"
115115
```
116116

117117
### Custom values
@@ -171,7 +171,7 @@ Deploy with your custom values:
171171
```bash
172172
helm upgrade -n trigger --install trigger \
173173
oci://ghcr.io/triggerdotdev/charts/trigger \
174-
--version "~4.0.0" \
174+
--version "^4.5.0" \
175175
--create-namespace \
176176
-f values-custom.yaml
177177
```
@@ -510,26 +510,26 @@ You can lock versions in two ways:
510510
# Pin to a specific version for production
511511
helm upgrade -n trigger --install trigger \
512512
oci://ghcr.io/triggerdotdev/charts/trigger \
513-
--version "4.0.5"
513+
--version "4.5.0"
514514
515515
# The app version will be different from the chart version
516516
# This is the version of the Trigger.dev webapp and supervisor
517517
# ..and should always match your Trigger.dev CLI version
518518
helm show chart \
519519
oci://ghcr.io/triggerdotdev/charts/trigger \
520-
--version "4.0.5" | grep appVersion
520+
--version "4.5.0" | grep appVersion
521521
```
522522

523523
**Specific image tags:**
524524

525525
```yaml
526526
webapp:
527527
image:
528-
tag: "v4.0.0"
528+
tag: "v4.5.0"
529529
530530
supervisor:
531531
image:
532-
tag: "v4.0.0"
532+
tag: "v4.5.0"
533533
```
534534

535535
The chart version's `appVersion` field determines the default image tags. Newer image tags may be incompatible with older chart versions and vice versa.

0 commit comments

Comments
 (0)