feat: initial commit
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 4m50s

This commit is contained in:
2025-11-01 03:10:21 +04:00
commit c12beb95e2
11 changed files with 915 additions and 0 deletions

45
.github/workflows/docker-publish.yml vendored Normal file
View File

@@ -0,0 +1,45 @@
name: Build and Push Docker Image
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to container registry
uses: docker/login-action@v3
with:
registry: registry.n08i40k.ru
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata for image tags
id: meta
uses: docker/metadata-action@v5
with:
images: registry.n08i40k.ru/n08i40k/max-messages-forwarder
- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Deploy
run: curl ${{ secrets.DEPLOY_URL }}