init
All checks were successful
docker-build / Build image (push) Successful in 48s

This commit is contained in:
2025-10-26 12:34:36 +07:00
commit 22431d5541
10 changed files with 267 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
name: docker-build
on:
push:
tags:
- "*"
permissions:
contents: read
packages: write
jobs:
build:
name: Build image
runs-on: ubuntu-22.04
container: catthehacker/ubuntu:act-latest
env:
REGISTRY: git.realmanual.ru
IMAGE_NAME: ${{ gitea.repository }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ gitea.actor }}
password: ${{ secrets.PUSH_TOKEN }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.ref_name }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest