chore(ci): улучшил конфигурацию CI/CD пайплайнов

This commit is contained in:
skettiks
2026-05-03 12:04:29 +03:00
parent 1795064710
commit 1e2625a460
3 changed files with 22 additions and 11 deletions
+6 -3
View File
@@ -30,13 +30,16 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Validate Dockerfile
- name: Build image (no push)
if: inputs.push == false
uses: docker/build-push-action@v7
with:
context: .
file: ./Containerfile
call: check
push: false
provenance: false
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Log in to GHCR
if: inputs.push == true
@@ -65,7 +68,7 @@ jobs:
uses: docker/build-push-action@v7
with:
context: .
file: ./Dockerfile
file: ./Containerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}