Update docker-build.yml

This commit is contained in:
Hmily
2025-04-21 09:52:41 +08:00
committed by GitHub
parent 756e14f4fd
commit a0dc042940

View File

@@ -33,8 +33,8 @@ jobs:
${{ secrets.DOCKER_HUB_USERNAME }}/streamcap:${{ github.sha }}
${{ github.ref == 'refs/heads/main' && format('{0}/streamcap:edge', secrets.DOCKER_HUB_USERNAME) || '' }}
${{ startsWith(github.ref, 'refs/tags/') && format('{0}/streamcap:{1}', secrets.DOCKER_HUB_USERNAME, github.ref_name) || '' }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=${{ github.ref }}
cache-to: type=gha,scope=${{ github.ref }},mode=max
- name: Notify build status
if: always()
@@ -50,4 +50,4 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
body: message
})
})