Optimize image builds by caching intermediate layers #164

Merged
bustikiller merged 4 commits from fix-docker-build into main 2024-12-29 12:11:51 +00:00
Showing only changes of commit 36c9acee51 - Show all commits

View File

@ -1,8 +1,8 @@
name: Build Nginx-based docker image
on:
push:
branches:
- main
# branches:
# - main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
@ -32,5 +32,5 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
cache-from: type=registry,ref=user/app:latest
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
cache-to: type=inline