chore(ci): улучшил конфигурацию CI/CD пайплайнов
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user