Skip to content

Commit 89c2b24

Browse files
committed
chore: update self-host compose, helm, docs
1 parent 0f349dd commit 89c2b24

7 files changed

Lines changed: 21 additions & 13 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/docker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ There are several reasons to lock the version of your Docker images:
339339
By default, the images will point at the latest versioned release via the `latest` tag. You can override this by specifying a different tag in your `.env` file. For example:
340340
341341
```bash
342-
TRIGGER_IMAGE_TAG=v4.0.0
342+
TRIGGER_IMAGE_TAG=v4.5.0
343343
```
344344
345345
## Task events

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.

hosting/docker/.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ DIRECT_URL=postgresql://postgres:unsafe-postgres-pw@postgres:5432/main?schema=pu
3434

3535
# Trigger image tag
3636
# - This is the version of the webapp and worker images to use, they should be locked to a specific version in production
37-
# - For example: TRIGGER_IMAGE_TAG=v4.0.0-v4-beta.21
38-
TRIGGER_IMAGE_TAG=v4-beta
37+
# - For example: TRIGGER_IMAGE_TAG=v4.5.0
38+
TRIGGER_IMAGE_TAG=latest
3939

4040
# Webapp
4141
# - These should generally be set to the same value

hosting/docker/webapp/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ x-logging: &logging-config
99

1010
services:
1111
webapp:
12-
image: ghcr.io/triggerdotdev/trigger.dev:${TRIGGER_IMAGE_TAG:-v4-beta}
12+
image: ghcr.io/triggerdotdev/trigger.dev:${TRIGGER_IMAGE_TAG:-latest}
1313
restart: ${RESTART_POLICY:-unless-stopped}
1414
logging: *logging-config
1515
ports:

hosting/docker/worker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ x-logging: &logging-config
99

1010
services:
1111
supervisor:
12-
image: ghcr.io/triggerdotdev/supervisor:${TRIGGER_IMAGE_TAG:-v4-beta}
12+
image: ghcr.io/triggerdotdev/supervisor:${TRIGGER_IMAGE_TAG:-latest}
1313
restart: ${RESTART_POLICY:-unless-stopped}
1414
logging: *logging-config
1515
depends_on:

0 commit comments

Comments
 (0)