Skip to content

feat: update publish-docker-image.yml #17

feat: update publish-docker-image.yml

feat: update publish-docker-image.yml #17

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
push: true
tags: docker.io/fisenkodv/tg-dad-jokes-bot:latest
labels: ${{ steps.meta.outputs.labels }}