From c20d7ebc073c629e04d2469700bd226edeba80e7 Mon Sep 17 00:00:00 2001 From: Gerald Leban Date: Sun, 18 Oct 2026 21:13:31 +0200 Subject: [PATCH] ci: dont publish docker image to GHCR --- .tangled/workflows/ci.yml | 2 +- .tangled/workflows/publish.yml | 64 ---------------------------------- 2 files changed, 1 insertion(+), 65 deletions(-) delete mode 100644 .tangled/workflows/publish.yml diff --git a/.tangled/workflows/ci.yml b/.tangled/workflows/ci.yml index 5445ecd..238422d 100644 --- a/.tangled/workflows/ci.yml +++ b/.tangled/workflows/ci.yml @@ -1,5 +1,5 @@ when: - - event: ['pull_request'] + - event: ['pull_request', 'push'] branch: ['main'] engine: microvm diff --git a/.tangled/workflows/publish.yml b/.tangled/workflows/publish.yml deleted file mode 100644 index e12697a..0000000 --- a/.tangled/workflows/publish.yml +++ /dev/null @@ -1,64 +0,0 @@ -when: - - event: ['push'] - branch: ['main'] - -engine: microvm -image: nixos - -dependencies: - - nodejs_24 - - pnpm - -services: - mysql: - enable: true - package: 'pkgs.mysql80' - ensureDatabases: ['gunpla_test'] - ensureUsers: - - name: gunpla - ensurePermissions: - 'gunpla_test.*': 'ALL PRIVILEGES' - initialScript: | - ALTER USER 'gunpla'@'localhost' IDENTIFIED WITH mysql_native_password BY 'cipassword'; - FLUSH PRIVILEGES; - -virtualisation: - docker: true - -environment: - NODE_ENV: test - PORT: '3333' - HOST: '127.0.0.1' - LOG_LEVEL: error - APP_URL: 'http://127.0.0.1:3333' - PUBLIC_URL: 'http://127.0.0.1:3333' - SESSION_DRIVER: memory - DB_HOST: '127.0.0.1' - DB_PORT: '3306' - DB_USER: gunpla - DB_PASSWORD: cipassword - DB_DATABASE: gunpla_test - JETSTREAM_URL: 'wss://jetstream2.us-east.bsky.network/subscribe' - -steps: - - name: Install dependencies - command: pnpm install --frozen-lockfile - - name: Typecheck - command: pnpm run typecheck - - name: Lint - command: pnpm run lint - - name: Test - command: pnpm run test - - name: Build Docker image - command: docker build -t gunpla-build:ci . - - name: Report image sizes - command: | - set -euo pipefail - echo "=== Docker image sizes ===" - docker image ls gunpla-build:ci - - name: Push to GHCR - command: | - set -euo pipefail - echo "$REGISTRY_TOKEN" | docker login ghcr.io -u "$REGISTRY_USER" --password-stdin - docker tag gunpla-build:ci "ghcr.io/$REGISTRY_USER/gunpla-build:latest" - docker push "ghcr.io/$REGISTRY_USER/gunpla-build:latest" -- 2.54.0