diff --git a/.github/workflows/docker-build-push.yaml b/.github/workflows/docker-build-push.yaml index 61bb415..099f13f 100644 --- a/.github/workflows/docker-build-push.yaml +++ b/.github/workflows/docker-build-push.yaml @@ -4,8 +4,6 @@ on: push: branches: - "main" - tags: - - "v*" jobs: docker: @@ -28,13 +26,11 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - # list of Docker images to use as base name for tags images: | gitea.proompteng.ai/d/lab/ecran tags: | type=ref,event=branch - type=ref,event=pr - type=semver,pattern={{version}} + type=semver,pattern={{version}},value=${{ steps.tag_version.outputs.new_tag }} type=sha - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -52,7 +48,6 @@ jobs: platforms: linux/arm64 context: ./apps/ecran file: ./apps/ecran/Dockerfile - push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=registry,ref=gitea.proompteng.ai/d/lab/ecran:main diff --git a/apps/ecran/src/app/problems/[id]/actions.ts b/apps/ecran/src/app/problems/[id]/actions.ts index 722fdf2..dd07540 100644 --- a/apps/ecran/src/app/problems/[id]/actions.ts +++ b/apps/ecran/src/app/problems/[id]/actions.ts @@ -8,7 +8,6 @@ import { InferSelectModel } from 'drizzle-orm' type Problem = InferSelectModel export async function createProblem(data: FormData) { - console.log(data) const result = await db .insert(problems) .values({ diff --git a/apps/ecran/src/app/problems/[id]/page.tsx b/apps/ecran/src/app/problems/[id]/page.tsx index 7b5a468..7f86f84 100644 --- a/apps/ecran/src/app/problems/[id]/page.tsx +++ b/apps/ecran/src/app/problems/[id]/page.tsx @@ -18,7 +18,7 @@ import { import { eq } from 'drizzle-orm' export default async function Problem({ params: { id } }: { params: { id: string } }) { - logger.info('Loading problem', { id }) + logger.info(`Loading problem ${id}`) if (id === 'create') { return (