Skip to content

Исправлена обработка пересланных сообщений от пользователей, скрывших… #102

Исправлена обработка пересланных сообщений от пользователей, скрывших…

Исправлена обработка пересланных сообщений от пользователей, скрывших… #102

name: Publish Docker image
on:
push:
branches:
- 'master'
paths:
- 'TG_AutoPoster/**'
- 'setup.py'
- 'requirements.txt'
- 'Dockerfile'
tags:
- '*'
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
-
name: Check out the repo
uses: actions/checkout@v4
with:
submodules: 'recursive'
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
qwertyadrian/tg_autoposter
ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=pep440,pattern={{version}}
type=pep440,pattern={{major}}
type=pep440,pattern={{major}}.{{minor}}
-
name: Build and push to Docker Hub
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}