Skip to content

Update pydantic-settings requirement from ~=2.6.1 to ~=2.7.0 #164

Update pydantic-settings requirement from ~=2.6.1 to ~=2.7.0

Update pydantic-settings requirement from ~=2.6.1 to ~=2.7.0 #164

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
pylint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -U -r requirements.txt
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
build:
runs-on: ubuntu-latest
needs: pylint
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install BuildX
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push the image
if: startsWith(github.ref, 'refs/heads/main') && github.actor == 'koval01'
run: |
# Enable qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
# Get the commit SHA
COMMIT_SHA=$(git rev-parse --short HEAD)
# Build and push the image with the commit SHA tag
docker buildx ls
docker buildx build --push \
--tag koval01/telegram-me:$COMMIT_SHA \
--platform linux/amd64,linux/arm64 .
docker buildx build --push \
--tag ghcr.io/koval01/telegram-me:$COMMIT_SHA \
--platform linux/amd64,linux/arm64 .