build(deps): Bump discord-py from 2.4.0 to 2.5.0 in the python-packages group #44
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
name: Build and Push Docker Images | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'LICENSE' | |
- 'README.md' | |
- 'README_FR.md' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- 'LICENSE' | |
- 'README.md' | |
- 'README_FR.md' | |
workflow_dispatch: | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-24.04 | |
steps: | |
# Checkout the repository | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Set up Docker Buildx | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
# Cache Docker layers to speed up builds | |
- name: Cache Docker layers | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx- | |
# Log in to Docker Hub | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
# Build and push Bot Docker image | |
- name: Build and push Bot Docker image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: Dockerfile.bot | |
push: true | |
tags: tiritibambix/cleanbot:latest | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-bot | |
platforms: linux/arm64,linux/amd64 | |
# Build and push Web Docker image | |
- name: Build and push Web Docker image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: Dockerfile.web | |
push: true | |
tags: tiritibambix/cleanbot-web:latest | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-web | |
platforms: linux/arm64,linux/amd64 | |
# Update cache for next run | |
- name: Move cache | |
run: | | |
rm -rf /tmp/.buildx-cache | |
mv /tmp/.buildx-cache-bot /tmp/.buildx-cache | |
# Logout from Docker Hub | |
- name: Logout from Docker Hub | |
run: docker logout | |
# Update Bot Docker Hub Description | |
- name: Update Bot Docker Hub Description | |
uses: peter-evans/dockerhub-description@v4 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: tiritibambix/cleanbot | |
readme-filepath: ./README.md | |
short-description: "Discord bot for automated channel purging with scheduling capabilities" | |
# Update Web Docker Hub Description | |
- name: Update Web Docker Hub Description | |
uses: peter-evans/dockerhub-description@v4 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: tiritibambix/cleanbot-web | |
readme-filepath: ./README.md | |
short-description: "Web interface for Cleanbot Discord purge scheduler" |