stakost f663ce4ee8
Some checks failed
Build and Deploy MikroTik Bot / build-and-deploy (push) Failing after 14s
Fix workflow runner label
2025-06-01 12:06:25 +03:00

38 lines
942 B
YAML

name: Build and Deploy MikroTik Bot
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Registry
uses: docker/login-action@v2
with:
registry: 10.10.30.121:5000
username: admin
password: admin
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: 10.10.30.121:5000/mikrotik-bot:latest
- name: Deploy to production
run: |
# Здесь будет команда для обновления контейнера в production
echo "Deployment step - will be configured with Portainer API"