mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-06-13 05:47:39 +02:00
Add more explicit cache image name
This commit is contained in:
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@ -78,7 +78,11 @@ jobs:
|
||||
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.name }}:cache
|
||||
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
||||
- name: Generate download cache Dockerfile
|
||||
run: ./generate.sh dl only
|
||||
id: dl_cache
|
||||
run: |
|
||||
./generate.sh dl only
|
||||
echo "dltagname=$(./util/get_dl_cache_tag.sh)" >> $GITHUB_OUTPUT
|
||||
cat Dockerfile.dl
|
||||
- name: Build download cache image
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
@ -86,7 +90,7 @@ jobs:
|
||||
file: Dockerfile.dl
|
||||
pull: true
|
||||
push: true
|
||||
tags: ${{ steps.imagename.outputs.dlname }}:latest
|
||||
tags: ${{ steps.imagename.outputs.dlname }}:${{ steps.dl_cache.outputs.dltagname }}
|
||||
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.dlname }}:cache
|
||||
cache-from: type=registry,ref=${{ steps.imagename.outputs.dlname }}:cache
|
||||
- name: Cleanup
|
||||
@ -110,7 +114,8 @@ jobs:
|
||||
repository_owner: ${{ github.repository_owner }}
|
||||
repository: ${{ github.repository }}
|
||||
owner_type: user
|
||||
untagged_only: true
|
||||
untagged_only: false
|
||||
keep_latest: 3
|
||||
build_target_bases:
|
||||
name: Build target base image
|
||||
if: ${{ github.event.inputs.buildOnly != 'true' }}
|
||||
|
Reference in New Issue
Block a user