diff --git a/.github/workflows/build-container.yaml b/.github/workflows/build-container.yaml index bd840bc37..83f030dff 100644 --- a/.github/workflows/build-container.yaml +++ b/.github/workflows/build-container.yaml @@ -75,6 +75,12 @@ jobs: echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV echo "OVERRIDE_PUSHED_IMAGE=false" >> $GITHUB_ENV + - name: Build + if: "!startsWith(github.ref, 'refs/heads/release-') && !startsWith(github.ref, 'refs/tags/')" + run: | + image_name="ghcr.io/${{ github.repository }}/${{matrix.app}}" + docker build --build-arg APP=${{matrix.app}} -f ${{matrix.dockerFile}} . -t "$image_name:test" + - name: Build & Push Image if: startsWith(github.ref, 'refs/heads/release-') || startsWith(github.ref, 'refs/tags/') run: | @@ -92,12 +98,3 @@ jobs: docker build --build-arg APP=${{matrix.app}} -f ${{matrix.dockerFile}} . -t "$image_name:$IMAGE_TAG" --push - -# - name: Build & Push Image -# if: startsWith(github.ref, 'refs/heads/release') -# run: | -# branch_name=${GITHUB_REF#refs/heads/} -# version_string="v${branch_name#release-}-nightly" -# -# docker build --build-arg APP=${{matrix.app}} -f ${{matrix.dockerFile}} . -t ghcr.io/kloudlite/web/${{matrix.app}}:$version_string --push -# docker build --build-arg APP=${{matrix.app}} -f ${{matrix.dockerFile}} . -t ghcr.io/kloudlite/web/${{matrix.app}}:commit-${GITHUB_SHA} --push \ No newline at end of file diff --git a/.gitignore b/.gitignore index f02da370b..9f711bc21 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,7 @@ public/** out .firebase +.firebaseConfig.js storybook-dist diff --git a/gql-queries-generator/doc/queries.graphql b/gql-queries-generator/doc/queries.graphql index 17b56733b..3cac9a950 100644 --- a/gql-queries-generator/doc/queries.graphql +++ b/gql-queries-generator/doc/queries.graphql @@ -557,6 +557,7 @@ query consoleGetProviderSecret($name: String!) { query consoleGetNodePool($clusterName: String!, $poolName: String!) { infra_getNodePool(clusterName: $clusterName, poolName: $poolName) { + id clusterName createdBy { userEmail @@ -657,6 +658,7 @@ query consoleListNodePools($clusterName: String!, $search: SearchNodepool, $pagi edges { cursor node { + id clusterName createdBy { userEmail @@ -894,6 +896,10 @@ mutation consoleCloneEnvironment($projectName: String!, $sourceEnvName: String!, } } +query consoleRestartApp($projectName: String!, $envName: String!, $appName: String!) { + core_restartApp(projectName: $projectName, envName: $envName, appName: $appName) +} + mutation consoleCreateApp($projectName: String!, $envName: String!, $app: AppIn!) { core_createApp(projectName: $projectName, envName: $envName, app: $app) { id @@ -2691,6 +2697,10 @@ query consoleListPvs($clusterName: String!, $search: SearchPersistentVolumes, $p } } +mutation consoleDeletePV($clusterName: String!, $pvName: String!) { + infra_deletePV(clusterName: $clusterName, pvName: $pvName) +} + query consoleListBuildRuns($repoName: String!, $search: SearchBuildRuns, $pq: CursorPaginationIn) { cr_listBuildRuns(repoName: $repoName, search: $search, pq: $pq) { edges { @@ -3786,6 +3796,7 @@ query authCli_getDevice($name: String!) { } clusterName projectName + environmentName spec { activeNamespace disabled diff --git a/lib/app-setup/root.tsx b/lib/app-setup/root.tsx index 21abc78d5..29776665e 100644 --- a/lib/app-setup/root.tsx +++ b/lib/app-setup/root.tsx @@ -29,6 +29,7 @@ import { TopBar } from '~/components/organisms/top-bar'; import styleZenerSelect from '@oshq/react-select/index.css'; import stylesUrl from '~/design-system/index.css'; import rcss from 'react-highlightjs-logs/dist/index.css'; +import tailwindBase from '~/design-system/tailwind-base.js'; import { isDev } from '../client/helpers/log'; import { getClientEnv, getServerEnv } from '../configs/base-url.cjs'; @@ -171,15 +172,20 @@ const Root = ({
+ > + Loading... + {/*