-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
306 additions
and
434 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 /bluebird | ||
|
||
# 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", "bluebird.py" ] | ||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv | ||
RUN uv sync --frozen | ||
|
||
CMD [ "uv", "run", "bluebird.py" ] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "bluebird" | ||
version = "1.0.0" | ||
version = "1.1.0" | ||
description = "Monitor users on X and report new posts via Discord." | ||
authors = ["EthanC <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.12" | ||
python-dotenv = "^1.0.1" | ||
loguru = "^0.7.2" | ||
loguru-discord = "^1.2.2" | ||
httpx = "^0.27.0" | ||
discord-webhook = "^1.3.1" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
ruff = "^0.4.4" | ||
requires-python = ">=3.12" | ||
dependencies = [ | ||
"python-dotenv>=1.0.1", | ||
"loguru>=0.7.2", | ||
"loguru-discord>=1.3.1", | ||
"httpx>=0.27.0", | ||
"discord-webhook>=1.3.1", | ||
] | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.uv] | ||
dev-dependencies = [ | ||
"ruff>=0.6.2", | ||
] | ||
|
||
[tool.ruff.lint] | ||
select = ["I"] |
Oops, something went wrong.