Skip to content

Publish pauline-nemchak bot Docker image #4

Publish pauline-nemchak bot Docker image

Publish pauline-nemchak bot Docker image #4

name: Publish pauline-nemchak bot Docker image
on:
workflow_dispatch:
inputs:
tags:
description: 'Trigger build'
push:
branches:
- main
paths:
- 'packages/pauline-nemchak/**'
- 'packages/common/**'
jobs:
push_to_registry:
name: Push Docker image to registry
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: packages
file: ./packages/pauline-nemchak/Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
tags: pashutk/pauline-nemchak-bot:latest