mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
Fix cleanup of untagged containers
This commit is contained in:
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user