gitea ci/cd
Some checks failed
Build & Push Docker Image / docker (push) Failing after 27s

This commit is contained in:
AlucardDev
2026-08-29 00:18:04 +03:00
parent 7d4ff5962c
commit 5a54e6bccb
2 changed files with 37 additions and 34 deletions

View File

@@ -0,0 +1,37 @@
name: Build & Push Docker Image
on:
push:
branches:
- main
env:
REGISTRY: git.severostudio.ru
IMAGE_NAME: ${{ github.repository }}
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}