edit and delete flows
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 20s

This commit is contained in:
2026-01-25 01:25:17 +07:00
parent a0980da89c
commit 4adc792b36
2 changed files with 16 additions and 32 deletions

View File

@@ -22,23 +22,26 @@ jobs:
run: |
echo "${{ secrets.GITEATOKEN }}" | docker login "${{ env.REGISTRY_HOST }}" -u "${{ github.actor }}" --password-stdin
env:
REGISTRY_HOST: http://gitea:3000 # ← ЗАМЕНИТЕ на ваш домен или IP:порт
REGISTRY_HOST: https://git.home # ← ЗАМЕНИТЕ на ваш домен или IP:порт
- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.REGISTRY_HOST }}/${{ github.repository }}
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
type=sha,format=short,prefix=
type=ref,event=tag
# - name: Extract metadata (tags, labels)
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: |
# ${{ env.REGISTRY_HOST }}/${{ github.repository }}
# tags: |
# type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
# type=sha,format=short,prefix=
# type=ref,event=tag
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: user/app:latest, user/app:v1.0.0
cache-from: type=registry,ref=user/app:buildcache
cache-to: type=registry,ref=user/app:buildcache,mode=max
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}