Skip to content

Commit

Permalink
Add docker posting
Browse files Browse the repository at this point in the history
  • Loading branch information
dzarlax committed Mar 3, 2024
1 parent d81f05c commit 0138c1e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and Push Docker image

on:
push:
branches:
- main # Или любая ветка, на которую вы хотите реагировать

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: dzarlax/todoist_bot:latest

0 comments on commit 0138c1e

Please sign in to comment.