Skip to content

Commit

Permalink
add cleanup to release
Browse files Browse the repository at this point in the history
  • Loading branch information
tillkuhn committed Mar 15, 2024
1 parent b664993 commit 2e3f307
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,11 @@ jobs:
playground-job:
name: Come out and play 1
runs-on: ubuntu-latest
permissions:
# packages: write # required to write / cleanup container registry
contents: write # for releases
#permissions:
# packages: write # required to write / cleanup container registry
# contents: write # for releases
steps:
# https://github.com/marketplace/actions/delete-older-releases
- name: Delete old released binaries
uses: dev-drprasad/[email protected]
with:
#repo: <owner>/<repoName> # defaults to current repo
keep_latest: 5
keep_min_download_counts: 1 # Optional parameters
delete_expired_data: 30 # must set, or nothing gets removed
#delete_tag_pattern: beta # defaults to ""
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: Install latest rubin Kafka Record producer
run: |
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
go-releaser:
runs-on: ubuntu-latest
permissions:
contents: write # for go-releaser binaries
contents: write # for go-releaser binaries (add and cleanup)
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -64,6 +64,18 @@ jobs:
if-no-files-found: error
retention-days: 1

# https://github.com/marketplace/actions/delete-older-releases
- name: Delete old released binaries
uses: dev-drprasad/[email protected]
with:
#repo: <owner>/<repoName> # defaults to current repo
keep_latest: 5
keep_min_download_counts: 1 # Optional parameters
delete_expired_data: 30 # must set, or nothing gets removed
#delete_tag_pattern: beta # defaults to ""
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docker-push:
name: Release multiplatform binaries and container images
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2e3f307

Please sign in to comment.