Skip to content

Add GitHub Actions workflow for Bot Docker build and push#44

Closed
vl336 with Copilot wants to merge 5 commits into
masterfrom
copilot/add-github-actions-for-bot
Closed

Add GitHub Actions workflow for Bot Docker build and push#44
vl336 with Copilot wants to merge 5 commits into
masterfrom
copilot/add-github-actions-for-bot

Conversation

Copilot AI commented Dec 20, 2025

Copy link
Copy Markdown

Adds CI/CD automation for building and pushing the Bot's Docker container to Yandex Cloud Registry using a standalone GitHub Actions workflow designed specifically for the Python Bot application.

Changes

  • Standalone Workflow (.github/workflows/bot-docker-build-push.yml)

    • Native GitHub Actions workflow using Docker ecosystem actions
    • Uses docker/build-push-action@v5 for efficient Docker builds
    • Uses docker/setup-buildx-action@v3 for advanced build features
    • Uses docker/metadata-action@v5 for automatic tag generation
    • Implements GitHub Actions cache for Docker layers (faster builds)
    • Triggers on push to main/develop branches and bot-v* tags
    • Uses existing YC_REGISTRY_ID and YC_SERVICE_ACCOUNT_KEY secrets
    • Builds from Bot/Dockerfile and pushes to cr.yandex/{registry_id}/meethub-bot
  • Security

    • Added explicit permissions: contents: read for security best practices
    • Conditional push based on secrets availability
  • Tagging Strategy

    • latest tag for default branch
    • Branch name tags for feature branches
    • Tag name for release tags
    • SHA-prefixed tags for traceability

The Bot workflow is completely independent and uses no C# or .NET tooling, making it appropriate for the Python-based Bot application.

Original prompt

On Bot, add github actions for building bot making docker container and pushing it to registry. example you could see in existing github actions and Nuke build


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits December 20, 2025 04:54
Co-authored-by: vl336 <44336551+vl336@users.noreply.github.com>
Co-authored-by: vl336 <44336551+vl336@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub actions for building and pushing Docker container Add GitHub Actions workflow for Bot Docker build and push Dec 20, 2025
Copilot AI requested a review from vl336 December 20, 2025 04:58

@vl336 vl336 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just create new github actions. do not use nuke it is for c#. bot is in python.

Copilot AI and others added 2 commits December 20, 2025 05:08
Co-authored-by: vl336 <44336551+vl336@users.noreply.github.com>
Co-authored-by: vl336 <44336551+vl336@users.noreply.github.com>

Copilot AI commented Dec 20, 2025

Copy link
Copy Markdown
Author

just create new github actions. do not use nuke it is for c#. bot is in python.

Done! I've replaced the Nuke-based approach with a standalone GitHub Actions workflow specifically for the Python Bot. The new workflow uses native Docker actions and doesn't depend on any C# tooling.

Key changes in commit 6041d06:

  • Uses docker/build-push-action@v5 for building and pushing
  • Implements Docker Buildx with GitHub Actions caching
  • Automatic tag generation for multiple strategies (latest, branch, tag, SHA)
  • No dependencies on Nuke or .NET

The workflow triggers on push to main/develop branches and bot-v* tags, building from Bot/Dockerfile and pushing to cr.yandex/{registry_id}/meethub-bot.

Copilot AI requested a review from vl336 December 20, 2025 05:11
@vl336 vl336 closed this Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants