All checks were successful
Build and Deploy MikroTik Bot / build-and-deploy (push) Successful in 26s
36 lines
904 B
YAML
36 lines
904 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
|
|
with:
|
|
config-inline: |
|
|
[registry."10.10.30.121:5000"]
|
|
http = true
|
|
insecure = true
|
|
|
|
- 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" |