mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-05-29 13:00:23 +02:00
Use workflow token for package cleanup
This commit is contained in:
parent
42307d4ebd
commit
d356c8bbeb
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -22,7 +22,6 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
HAVE_CLEANUP_PAT: ${{ secrets.CLEANUP_PAT != '' }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre_check:
|
pre_check:
|
||||||
@ -94,11 +93,10 @@ jobs:
|
|||||||
./download.sh
|
./download.sh
|
||||||
./util/clean_cache.sh
|
./util/clean_cache.sh
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: ${{ env.HAVE_CLEANUP_PAT == 'true' }}
|
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: BtbN/delete-untagged-ghcr-action@main
|
uses: BtbN/delete-untagged-ghcr-action@main
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CLEANUP_PAT }}
|
token: ${{ github.token }}
|
||||||
package_name: ${{ steps.imagename.outputs.rawname }}
|
package_name: ${{ steps.imagename.outputs.rawname }}
|
||||||
repository_owner: ${{ github.repository_owner }}
|
repository_owner: ${{ github.repository_owner }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
@ -150,11 +148,10 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
GH_REPO=ghcr.io/${{ steps.imagename.outputs.gh_repo }}
|
GH_REPO=ghcr.io/${{ steps.imagename.outputs.gh_repo }}
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: ${{ env.HAVE_CLEANUP_PAT == 'true' }}
|
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: BtbN/delete-untagged-ghcr-action@main
|
uses: BtbN/delete-untagged-ghcr-action@main
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CLEANUP_PAT }}
|
token: ${{ github.token }}
|
||||||
package_name: ${{ steps.imagename.outputs.rawname }}
|
package_name: ${{ steps.imagename.outputs.rawname }}
|
||||||
repository_owner: ${{ github.repository_owner }}
|
repository_owner: ${{ github.repository_owner }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
@ -216,11 +213,10 @@ jobs:
|
|||||||
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.name }}:cache
|
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: ${{ env.HAVE_CLEANUP_PAT == 'true' }}
|
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: BtbN/delete-untagged-ghcr-action@main
|
uses: BtbN/delete-untagged-ghcr-action@main
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CLEANUP_PAT }}
|
token: ${{ github.token }}
|
||||||
package_name: ${{ steps.imagename.outputs.rawname }}
|
package_name: ${{ steps.imagename.outputs.rawname }}
|
||||||
repository_owner: ${{ github.repository_owner }}
|
repository_owner: ${{ github.repository_owner }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user