Openstatus www.openstatus.dev

fix workflow (#1183)

* fix workflow

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Thibault Le Ouay
autofix-ci[bot]
and committed by
GitHub
7884aea9 caf3eedd

+41 -32
+1 -2
apps/workflows/.dockerignore
··· 1 - # This file is generated by Dofigen v2.2.0 1 + # This file is generated by Dofigen v2.3.2 2 2 # See https://github.com/lenra-io/dofigen 3 3 4 4 node_modules ··· 12 12 /packages/notifications 13 13 /packages/tinybird 14 14 /packages/tracker 15 - /packages/upstash
+6 -5
apps/workflows/Dockerfile
··· 1 - # syntax=docker/dockerfile:1.7 2 - # This file is generated by Dofigen v2.2.0 1 + # syntax=docker/dockerfile:1.11 2 + # This file is generated by Dofigen v2.3.2 3 3 # See https://github.com/lenra-io/dofigen 4 4 5 5 # install 6 - FROM oven/bun@sha256:9a45ebd9a1e5403177064592e1564791443b1a459356c905d1112e32758dd454 AS install 6 + FROM oven/bun@sha256:e9382fda475d1ff0a939e925db3ca5a91b3b26cd71f23410dc5363262384bbc2 AS install 7 7 WORKDIR /app/ 8 8 RUN \ 9 9 --mount=type=bind,target=package.json,source=package.json \ ··· 13 13 --mount=type=bind,target=packages/emails/package.json,source=packages/emails/package.json \ 14 14 --mount=type=bind,target=packages/utils/package.json,source=packages/utils/package.json \ 15 15 --mount=type=bind,target=packages/tsconfig/package.json,source=packages/tsconfig/package.json \ 16 + --mount=type=bind,target=packages/upstash/package.json,source=packages/upstash/package.json \ 16 17 --mount=type=cache,target=/root/.bun/install/cache,sharing=locked \ 17 18 bun install --production --ignore-scripts --frozen-lockfile --verbose 18 19 19 20 # build 20 - FROM oven/bun@sha256:9a45ebd9a1e5403177064592e1564791443b1a459356c905d1112e32758dd454 AS build 21 + FROM oven/bun@sha256:e9382fda475d1ff0a939e925db3ca5a91b3b26cd71f23410dc5363262384bbc2 AS build 21 22 ENV NODE_ENV="production" 22 23 WORKDIR /app/apps/workflows 23 24 COPY \ ··· 30 31 RUN bun build --compile --sourcemap --format=cjs src/index.ts --outfile=app 31 32 32 33 # runtime 33 - FROM debian@sha256:b0c91cc181796d34c53f7ea106fbcddaf87f3e601cc371af6a24a019a489c980 AS runtime 34 + FROM debian@sha256:e831d9a884d63734fe3dd9c491ed9a5a3d4c6a6d32c5b14f2067357c49b0b7e1 AS runtime 34 35 COPY \ 35 36 --from=build \ 36 37 --chown=1000:1000 \
+26 -24
apps/workflows/dofigen.lock
··· 11 11 - /packages/notifications 12 12 - /packages/tinybird 13 13 - /packages/tracker 14 - - /packages/upstash 15 14 builders: 16 - build: 17 - fromImage: 18 - path: oven/bun 19 - digest: sha256:9a45ebd9a1e5403177064592e1564791443b1a459356c905d1112e32758dd454 20 - workdir: /app/apps/workflows 21 - env: 22 - NODE_ENV: production 23 - copy: 24 - - paths: 25 - - . 26 - target: /app/ 27 - - fromBuilder: install 28 - paths: 29 - - /app/node_modules 30 - target: /app/node_modules 31 - run: 32 - - bun build --compile --sourcemap --format=cjs src/index.ts --outfile=app 33 15 install: 34 16 fromImage: 35 17 path: oven/bun 36 - digest: sha256:9a45ebd9a1e5403177064592e1564791443b1a459356c905d1112e32758dd454 18 + digest: sha256:e9382fda475d1ff0a939e925db3ca5a91b3b26cd71f23410dc5363262384bbc2 37 19 workdir: /app/ 38 20 run: 39 21 - bun install --production --ignore-scripts --frozen-lockfile --verbose ··· 54 36 source: packages/utils/package.json 55 37 - target: packages/tsconfig/package.json 56 38 source: packages/tsconfig/package.json 39 + - target: packages/upstash/package.json 40 + source: packages/upstash/package.json 41 + build: 42 + fromImage: 43 + path: oven/bun 44 + digest: sha256:e9382fda475d1ff0a939e925db3ca5a91b3b26cd71f23410dc5363262384bbc2 45 + workdir: /app/apps/workflows 46 + env: 47 + NODE_ENV: production 48 + copy: 49 + - paths: 50 + - . 51 + target: /app/ 52 + - fromBuilder: install 53 + paths: 54 + - /app/node_modules 55 + target: /app/node_modules 56 + run: 57 + - bun build --compile --sourcemap --format=cjs src/index.ts --outfile=app 57 58 fromImage: 58 59 path: debian 59 - digest: sha256:b0c91cc181796d34c53f7ea106fbcddaf87f3e601cc371af6a24a019a489c980 60 + digest: sha256:e831d9a884d63734fe3dd9c491ed9a5a3d4c6a6d32c5b14f2067357c49b0b7e1 60 61 copy: 61 62 - fromBuilder: build 62 63 paths: ··· 72 73 library: 73 74 debian: 74 75 bullseye-slim: 75 - digest: sha256:b0c91cc181796d34c53f7ea106fbcddaf87f3e601cc371af6a24a019a489c980 76 + digest: sha256:e831d9a884d63734fe3dd9c491ed9a5a3d4c6a6d32c5b14f2067357c49b0b7e1 76 77 oven: 77 78 bun: 78 79 latest: 79 - digest: sha256:9a45ebd9a1e5403177064592e1564791443b1a459356c905d1112e32758dd454 80 + digest: sha256:e9382fda475d1ff0a939e925db3ca5a91b3b26cd71f23410dc5363262384bbc2 80 81 resources: 81 82 dofigen.yml: 82 - hash: f708205b6699a47937d4ce49a38a2aa1b3f5ed409b685c285603e9e1b5f9fea0 83 + hash: 48a9d086b070600575e9867af0c63f2bbcfd301c867121e671fc771ae50f34dc 83 84 content: | 84 85 ignore: 85 86 - node_modules ··· 93 94 - /packages/notifications 94 95 - /packages/tinybird 95 96 - /packages/tracker 96 - - /packages/upstash 97 97 builders: 98 98 install: 99 99 fromImage: oven/bun ··· 107 107 - packages/emails/package.json 108 108 - packages/utils/package.json 109 109 - packages/tsconfig/package.json 110 + - packages/upstash/package.json 111 + 110 112 # Install dependencies 111 113 run: bun install --production --ignore-scripts --frozen-lockfile --verbose 112 114 cache:
+2 -1
apps/workflows/dofigen.yml
··· 10 10 - /packages/notifications 11 11 - /packages/tinybird 12 12 - /packages/tracker 13 - - /packages/upstash 14 13 builders: 15 14 install: 16 15 fromImage: oven/bun ··· 24 23 - packages/emails/package.json 25 24 - packages/utils/package.json 26 25 - packages/tsconfig/package.json 26 + - packages/upstash/package.json 27 + 27 28 # Install dependencies 28 29 run: bun install --production --ignore-scripts --frozen-lockfile --verbose 29 30 cache:
+5
apps/workflows/src/cron/monitor.ts
··· 169 169 to: [user.email], 170 170 subject: "Your OpenStatus monitors will be paused soon", 171 171 from: "Thibault From OpenStatus <thibault@notifications.openstatus.dev>", 172 + replyTo: "thibault@openstatus.dev", 173 + 172 174 react: MonitorDeactivationEmail({ 173 175 lastLogin: new Date(), 174 176 deactivateAt: new Date(new Date().setDate(new Date().getDate() + 14)), ··· 197 199 to: [user.email], 198 200 subject: "Your OpenStatus monitors will be paused in 3 days", 199 201 from: "Thibault From OpenStatus <thibault@notifications.openstatus.dev>", 202 + replyTo: "thibault@openstatus.dev", 203 + 200 204 react: MonitorDeactivationEmail({ 201 205 lastLogin: new Date(workFlowRunTimestamp), 202 206 deactivateAt: new Date(new Date().setDate(new Date().getDate() + 3)), ··· 267 271 to: [currentUser.email], 268 272 subject: "Your monitors have been paused", 269 273 from: "Thibault From OpenStatus <thibault@notifications.openstatus.dev>", 274 + replyTo: "thibault@openstatus.dev", 270 275 react: MonitorPausedEmail(), 271 276 }); 272 277 }
+1
packages/emails/src/send.ts
··· 11 11 subject: string; 12 12 to: string[]; 13 13 from: string; 14 + replyTo?: string; 14 15 } 15 16 16 17 export type EmailHtml = {