From dc57402be9b469d8a72d976b727eccdfcaedaf3e Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 26 Sep 2022 04:17:13 +0200 Subject: [PATCH] buildcache not on ghcr --- .github/workflows/docker-image.yml | 4 +- backend/sqlx-data.json | 79 ++++++++++++++++++------------ 2 files changed, 49 insertions(+), 34 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index ae550a41f7..48f6cdd601 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -79,8 +79,8 @@ jobs: ${{ steps.metalocal.outputs.tags }} ${{ steps.meta.outputs.tags }} labels: ${{ steps.metalocal.outputs.labels }} - cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache - cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max + cache-from: type=registry,ref=${{ env.LOCAL_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache + cache-to: type=registry,ref=${{ env.LOCAL_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max playwright: runs-on: [self-hosted, new] needs: [build] diff --git a/backend/sqlx-data.json b/backend/sqlx-data.json index dbe5cb2376..ec834e8888 100644 --- a/backend/sqlx-data.json +++ b/backend/sqlx-data.json @@ -384,6 +384,53 @@ }, "query": "SELECT * FROM workspace LIMIT $1 OFFSET $2" }, + "12d3b30b0f5f5bd9601565de5bdeadc3d99a946d2d91cf2bcba84bd161726d51": { + "describe": { + "columns": [ + { + "name": "id", + "ordinal": 0, + "type_info": "Uuid" + }, + { + "name": "workspace_id", + "ordinal": 1, + "type_info": "Varchar" + }, + { + "name": "last_ping", + "ordinal": 2, + "type_info": "Timestamptz" + } + ], + "nullable": [ + false, + false, + false + ], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "kind": { + "Enum": [ + "script", + "preview", + "flow", + "dependencies", + "flowpreview", + "script_hub" + ] + }, + "name": "job_kind" + } + } + ] + } + }, + "query": "UPDATE queue SET running = false WHERE last_ping < now() - ($1 || ' seconds')::interval AND running = true AND job_kind != $2 RETURNING id, workspace_id, last_ping" + }, "13a10a404e892d6975d4913424880a75bfb2c6dfb5134c270c7c7225acb05db4": { "describe": { "columns": [ @@ -2813,38 +2860,6 @@ }, "query": "SELECT username from usr WHERE workspace_id = $1" }, - "c78b52b350193135d2b9fcf04d3113f7504cc61f6414f809d8a9c51a16f20d35": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Uuid" - }, - { - "name": "workspace_id", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "last_ping", - "ordinal": 2, - "type_info": "Timestamptz" - } - ], - "nullable": [ - false, - false, - false - ], - "parameters": { - "Left": [ - "Text" - ] - } - }, - "query": "UPDATE queue SET running = false WHERE last_ping < now() - ($1 || ' seconds')::interval and running = true RETURNING id, workspace_id, last_ping" - }, "cac594031a21b4806de9c4616317d3541522ef9712a83ecff7bd8b5f6e870748": { "describe": { "columns": [],