diff options
| -rw-r--r-- | .github/FUNDING.yml | 1 | ||||
| -rw-r--r-- | .github/dependabot.yml | 6 | ||||
| -rw-r--r-- | .github/workflows/codeql.yml | 46 | ||||
| -rw-r--r-- | .github/workflows/deploy.yml | 68 | ||||
| -rw-r--r-- | .github/workflows/docker-build.yml | 41 | ||||
| -rw-r--r-- | .github/workflows/ruff.yml | 42 | ||||
| -rw-r--r-- | Dockerfile | 31 |
7 files changed, 0 insertions, 235 deletions
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 4b822e5..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: [ccleberg] diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 6483b1d..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,6 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "uv" - directory: "/" - schedule: - interval: "weekly" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index f857dda..0000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: "CodeQL Advanced" - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - analyze: - name: Analyze (${{ matrix.language }}) - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} - permissions: - security-events: write - packages: read - actions: read - contents: read - - strategy: - fail-fast: false - matrix: - include: - - language: python - build-mode: none - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Initialize CodeQL - uses: github/codeql-action/init@v4 - with: - languages: ${{ matrix.language }} - build-mode: ${{ matrix.build-mode }} - - if: matrix.build-mode == 'manual' - shell: bash - run: | - echo 'If you are using a "manual" build mode for one or more of the' \ - 'languages you are analyzing, replace this with the commands to build' \ - 'your code, for example:' - echo ' make bootstrap' - echo ' make release' - exit 1 - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v4 - with: - category: "/language:${{matrix.language}}" diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 310b432..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: Build and Deploy - -on: - push: - branches: - - main - paths-ignore: - - '.github/**' - - 'screenshots/**' - - 'utils/**' - - 'LICENSE' - - 'README.org' - -jobs: - build-job: - runs-on: ubuntu-latest - container: - image: ghcr.io/ccleberg/cleberg.net:main - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Run Build - env: - ENV: "prod" - BUILD: "true" - DEPLOY: "false" - run: | - echo "Environment is ready. Running build..." - uv run build.py - - - name: Upload Build Artifacts - uses: actions/upload-artifact@v4 - with: - name: build-output - path: ${{ github.workspace }}/.build/ - include-hidden-files: true - - deploy-job: - runs-on: ubuntu-latest - needs: build-job - environment: production - container: - image: ghcr.io/ccleberg/cleberg.net:main - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Download Build Artifacts - uses: actions/download-artifact@v4 - with: - name: build-output - path: ${{ github.workspace }}/.build/ - - - name: Setup SSH and Deploy - env: - SERVER_IP: ${{ secrets.SERVER_IP }} - SERVER_USER: ${{ secrets.SERVER_USER }} - SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} - run: | - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - rsync -avz --delete \ - -e "ssh -p ${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" \ - .build/ \ - $SERVER_USER@$SERVER_IP:/var/www/cleberg.net/ diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml deleted file mode 100644 index b3d0455..0000000 --- a/.github/workflows/docker-build.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Build and Push Docker Image - -on: - push: - branches: [ "main" ] - paths: - - 'Dockerfile' - - 'requirements.txt' - - '.github/workflows/docker-build.yml' - -jobs: - build: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Log in to GHCR - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata - id: meta - uses: docker/metadata-action@v5 - with: - images: ghcr.io/${{ github.repository }} - - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml deleted file mode 100644 index 1c0fbea..0000000 --- a/.github/workflows/ruff.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Ruff - -on: - push: - branches: [ "main" ] - paths: - - '**.py' - pull_request: - branches: [ "main" ] - paths: - - '**.py' - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.x"] - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - ref: ${{ github.event.pull_request.head.ref }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pandas dash plotly.express - - name: Install Ruff - uses: astral-sh/[email protected] - - name: Ruff Actions - run: | - ruff check --fix - ruff format - - name: Add and Commit - uses: EndBug/add-and-commit@v9 - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - default_author: github_actions - pathspec_error_handling: ignore diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index de87df9..0000000 --- a/Dockerfile +++ /dev/null @@ -1,31 +0,0 @@ -FROM python:3.12-slim - -ENV DEBIAN_FRONTEND=noninteractive \ - HOMEBREW_NO_AUTO_UPDATE=1 \ - PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}" - -RUN apt-get update && apt-get install -y --no-install-recommends \ - curl \ - git \ - procps \ - build-essential \ - ca-certificates \ - openssh-client \ - && rm -rf /var/lib/apt/lists/* - -RUN useradd -m -s /bin/bash linuxbrew -USER linuxbrew -WORKDIR /home/linuxbrew - -RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - -RUN brew install emacs rsync uv minify - -RUN mkdir -p ~/.config/emacs/.local/straight/repos && \ - cd ~/.config/emacs/.local/straight/repos && \ - git clone --depth 1 https://github.com/emacsorphanage/htmlize.git && \ - git clone --depth 1 https://github.com/emacs-love/templatel.git && \ - git clone --depth 1 https://github.com/emacs-love/weblorg.git - -USER root -WORKDIR /builds |
