Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

deploy to master #138

Merged
merged 5 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.env
.env.test

sampledata/
sampledata/
.DS_Store
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM denoland/deno:distroless-1.34.1@sha256:a01b4263047b65badb3ef0315d7dbd14ba89950c6e98332a5913a624abb4480c
FROM denoland/deno:distroless-1.38.2@sha256:90b88cbc9bb1484085c7fae9e3f8ff6275c7bb15b716cdd137076a38394ff2c9
ENV DENO_ENV=production

WORKDIR /app
Expand Down
11 changes: 8 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ const baseUrl = "https://api.fly.io";

export interface AppsList {
id: string;
name: string;
deployed: boolean;
status: string;
organization: {
slug: string;
};
currentRelease: {
createdAt: string;
};
}

interface LogObject {
Expand Down Expand Up @@ -116,7 +121,7 @@ async function getLogsFor(
} catch (err) {
// log error
if (!err.message.startsWith("E11000 duplicate key error collection:")) {
console.log(`ERROR with APP-ID: ${appId}`)
console.log(`ERROR with APP-ID: ${appId}`);
console.log(err);
}
}
Expand Down Expand Up @@ -152,7 +157,7 @@ async function getLatestAppsList() {
},
body: JSON.stringify({
query: `query {
apps(type: "container", first: 400, role: null) {
apps(first: 400, role: null) {
nodes {
id
name
Expand Down Expand Up @@ -200,7 +205,7 @@ async function getLatestAppsList() {
{ key: { message: "text" }, name: "message_text_index" },
],
});

// Create next_token key if doesn't exist in cache
if (!nextTokenCache[app.id]) {
nextTokenCache[app.id] = "";
Expand Down
Loading