Fix cleanup of untagged containers

This commit is contained in:
sebthom
2023-12-06 03:36:24 +01:00
parent 23daffa428
commit 87a232c97d

View File

@@ -235,21 +235,14 @@ jobs:
uses: actions/checkout@v4 #https://github.com/actions/checkout uses: actions/checkout@v4 #https://github.com/actions/checkout
- name: Generate GitHub access token
uses: tibdex/github-app-token@v2 #https://github.com/tibdex/github-app-token
id: generate_token
# see https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#authenticating-with-github-app-generated-tokens
with:
# see https://github.com/organizations/Second-Hand-Friends/settings/apps/kleinanzeigen-bot-tu
app_id: ${{ secrets.DEPS_UPDATER_APP_ID }}
private_key: ${{ secrets.DEPS_UPDATER_PRIVATE_KEY }}
- name: Delete untagged docker image - name: Delete untagged docker image
continue-on-error: true continue-on-error: true
uses: camargo/delete-untagged-action@v1 uses: actions/delete-package-versions@v4
with: with:
github-token: ${{ steps.generate_token.outputs.token }} token: ${{ github.token }}
delete-only-untagged-versions: true
package-name: kleinanzeigen-bot
package-type: container
- name: Download build artifacts - name: Download build artifacts