Skip to content

Commit a10e2a8

Browse files
authored
Small fixes in prep for v4 self-hosting (#2018)
* fix entitlement validation when client doesn't exist * add supervisor to publish workflow * fix v4 publish workflow name
1 parent 4232096 commit a10e2a8

File tree

4 files changed

+25
-18
lines changed

4 files changed

+25
-18
lines changed

.github/workflows/publish-worker-re2.yml renamed to .github/workflows/publish-worker-v4.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "⚒️ Publish Worker RE2"
1+
name: "⚒️ Publish Worker (v4)"
22

33
on:
44
workflow_call:
@@ -85,11 +85,11 @@ jobs:
8585
REPOSITORY: ${{ steps.get_repository.outputs.repo }}
8686
IMAGE_TAG: ${{ steps.get_tag.outputs.tag }}
8787

88-
- name: 🐙 Push 'v3' tag to GitHub Container Registry
89-
if: steps.get_tag.outputs.is_semver == 'true'
90-
run: |
91-
docker tag infra_image "$REGISTRY/$REPOSITORY:v3"
92-
docker push "$REGISTRY/$REPOSITORY:v3"
93-
env:
94-
REGISTRY: ghcr.io/triggerdotdev
95-
REPOSITORY: ${{ steps.get_repository.outputs.repo }}
88+
# - name: 🐙 Push 'v3' tag to GitHub Container Registry
89+
# if: steps.get_tag.outputs.is_semver == 'true'
90+
# run: |
91+
# docker tag infra_image "$REGISTRY/$REPOSITORY:v3"
92+
# docker push "$REGISTRY/$REPOSITORY:v3"
93+
# env:
94+
# REGISTRY: ghcr.io/triggerdotdev
95+
# REPOSITORY: ${{ steps.get_repository.outputs.repo }}

.github/workflows/publish-worker.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ jobs:
7777
REPOSITORY: ${{ steps.get_repository.outputs.repo }}
7878
IMAGE_TAG: ${{ steps.get_tag.outputs.tag }}
7979

80-
- name: 🐙 Push 'v3' tag to GitHub Container Registry
81-
if: steps.get_tag.outputs.is_semver == 'true'
82-
run: |
83-
docker tag infra_image "$REGISTRY/$REPOSITORY:v3"
84-
docker push "$REGISTRY/$REPOSITORY:v3"
85-
env:
86-
REGISTRY: ghcr.io/triggerdotdev
87-
REPOSITORY: ${{ steps.get_repository.outputs.repo }}
80+
# - name: 🐙 Push 'v3' tag to GitHub Container Registry
81+
# if: steps.get_tag.outputs.is_semver == 'true'
82+
# run: |
83+
# docker tag infra_image "$REGISTRY/$REPOSITORY:v3"
84+
# docker push "$REGISTRY/$REPOSITORY:v3"
85+
# env:
86+
# REGISTRY: ghcr.io/triggerdotdev
87+
# REPOSITORY: ${{ steps.get_repository.outputs.repo }}

.github/workflows/publish.yml

+7
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,10 @@ jobs:
6868
secrets: inherit
6969
with:
7070
image_tag: ${{ inputs.image_tag }}
71+
72+
publish-worker-v4:
73+
needs: [typecheck, units]
74+
uses: ./.github/workflows/publish-worker-v4.yml
75+
secrets: inherit
76+
with:
77+
image_tag: ${{ inputs.image_tag }}

apps/webapp/app/runEngine/validators/triggerTaskValidator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class DefaultTriggerTaskValidator implements TriggerTaskValidator {
4646

4747
const result = await getEntitlement(environment.organizationId);
4848

49-
if (!result || result.hasAccess === false) {
49+
if (result && result.hasAccess === false) {
5050
return {
5151
ok: false,
5252
error: new OutOfEntitlementError(),

0 commit comments

Comments
 (0)