Skip to content

Commit

Permalink
Migrate to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanC committed Aug 25, 2024
1 parent fbcda0a commit 888ba3d
Show file tree
Hide file tree
Showing 8 changed files with 314 additions and 441 deletions.
File renamed without changes.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: ci

on:
push:
branches:
- "main"

jobs:
build:
runs-on: ubuntu-latest
steps:
- id: repository
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.event.repository.name }}
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ steps.repository.outputs.lowercase }}:latest
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
repository: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ steps.repository.outputs.lowercase }}
short-description: ${{ github.event.repository.description }}
39 changes: 0 additions & 39 deletions .github/workflows/ci.yml

This file was deleted.

17 changes: 5 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
FROM python:3.12.3-slim-bullseye
FROM python:3.12-slim-bookworm

WORKDIR /renovate

# Install and configure Poetry
# https://github.com/python-poetry/poetry
RUN pip install poetry
RUN poetry config virtualenvs.create false

# Install dependencies
COPY pyproject.toml pyproject.toml
RUN poetry install --no-root

COPY . .

CMD [ "python", "renovate.py" ]
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
RUN uv sync --frozen --no-dev

CMD [ "uv", "run", "renovate.py" ]
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Renovate

![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/EthanC/Renovate/ci.yml?branch=main) ![Docker Pulls](https://img.shields.io/docker/pulls/ethanchrisp/renovate?label=Docker%20Pulls) ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/ethanchrisp/renovate/latest?label=Docker%20Image%20Size)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/EthanC/Renovate/ci.yaml?branch=main) ![Docker Pulls](https://img.shields.io/docker/pulls/ethanchrisp/renovate?label=Docker%20Pulls) ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/ethanchrisp/renovate/latest?label=Docker%20Image%20Size)

Renovate is a Steam, Battle.net, and PlayStation title watcher that reports updates via Discord.
Renovate monitors games on Steam, Battle.net, and PlayStation and notifies about updates via Discord.

<p align="center">
<img src="https://i.imgur.com/XVGizWC.png" draggable="false">
Expand All @@ -27,9 +27,9 @@ Regardless of your chosen setup method, Renovate is intended for use with a task

### Docker (Recommended)

Modify the following `docker-compose.yml` example file, then run `docker compose up`.
Modify the following `compose.yaml` example file, then run `docker compose up`.

```yml
```yaml
services:
renovate:
container_name: renovate
Expand All @@ -49,7 +49,7 @@ services:
Renovate is built for [Python 3.12](https://www.python.org/) or greater.
1. Install required dependencies using [Poetry](https://python-poetry.org/): `poetry install --no-root`
1. Install required dependencies using [uv](https://github.com/astral-sh/uv): `uv sync`
2. Rename `.env_example` to `.env`, then provide the environment variables.
3. Start Renovate: `python renovate.py`

Expand Down
Loading

0 comments on commit 888ba3d

Please sign in to comment.