mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-05-09 11:04:29 +02:00
Revert back to registry based caching
This commit is contained in:
parent
c26651fc14
commit
b84fcf068c
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
|||||||
password: ${{ github.token }}
|
password: ${{ github.token }}
|
||||||
- name: Image Name
|
- name: Image Name
|
||||||
id: imagename
|
id: imagename
|
||||||
run: echo "::set-output name=name::ghcr.io/${GITHUB_REPOSITORY,,}/base:latest"
|
run: echo "::set-output name=name::ghcr.io/${GITHUB_REPOSITORY,,}/base"
|
||||||
- name: Stop Commands
|
- name: Stop Commands
|
||||||
run: T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
|
run: T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
|
||||||
- name: Build target base image
|
- name: Build target base image
|
||||||
@ -41,9 +41,9 @@ jobs:
|
|||||||
context: images/base
|
context: images/base
|
||||||
pull: true
|
pull: true
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.imagename.outputs.name }}
|
tags: ${{ steps.imagename.outputs.name }}:latest
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
cache-from: type=gha
|
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
build_target_bases:
|
build_target_bases:
|
||||||
name: Build target base image
|
name: Build target base image
|
||||||
needs: build_base
|
needs: build_base
|
||||||
@ -67,7 +67,7 @@ jobs:
|
|||||||
password: ${{ github.token }}
|
password: ${{ github.token }}
|
||||||
- name: Image Name
|
- name: Image Name
|
||||||
id: imagename
|
id: imagename
|
||||||
run: echo "::set-output name=name::ghcr.io/${GITHUB_REPOSITORY,,}/base-${{ matrix.target }}:latest"
|
run: echo "::set-output name=name::ghcr.io/${GITHUB_REPOSITORY,,}/base-${{ matrix.target }}"
|
||||||
- name: Stop Commands
|
- name: Stop Commands
|
||||||
run: T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
|
run: T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
|
||||||
- name: Build target base image
|
- name: Build target base image
|
||||||
@ -76,9 +76,9 @@ jobs:
|
|||||||
context: images/base-${{ matrix.target }}
|
context: images/base-${{ matrix.target }}
|
||||||
pull: true
|
pull: true
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.imagename.outputs.name }}
|
tags: ${{ steps.imagename.outputs.name }}:latest
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
cache-from: type=gha
|
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
build_targets:
|
build_targets:
|
||||||
name: Build target-variant image
|
name: Build target-variant image
|
||||||
needs: build_target_bases
|
needs: build_target_bases
|
||||||
@ -107,7 +107,7 @@ jobs:
|
|||||||
id: imagename
|
id: imagename
|
||||||
run: |
|
run: |
|
||||||
IMG="ghcr.io/${GITHUB_REPOSITORY,,}/${{ matrix.target }}-${{ matrix.variant }}"
|
IMG="ghcr.io/${GITHUB_REPOSITORY,,}/${{ matrix.target }}-${{ matrix.variant }}"
|
||||||
echo "::set-output name=name::${IMG/ /-}:latest"
|
echo "::set-output name=name::${IMG/ /-}"
|
||||||
- name: Stop Commands
|
- name: Stop Commands
|
||||||
run: T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
|
run: T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
|
||||||
- name: Build target base image
|
- name: Build target base image
|
||||||
@ -116,9 +116,9 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
pull: true
|
pull: true
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.imagename.outputs.name }}
|
tags: ${{ steps.imagename.outputs.name }}:latest
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
cache-from: type=gha
|
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
build_ffmpeg:
|
build_ffmpeg:
|
||||||
name: Build ffmpeg
|
name: Build ffmpeg
|
||||||
needs: build_targets
|
needs: build_targets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user