Skip to content

Commit 86bbc6d

Browse files
Add job of deleting untagged images
Signed-off-by: Cihat Kurtuluş Altıparmak <[email protected]>
1 parent da700c0 commit 86bbc6d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/build_images.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,21 @@ jobs:
160160
ROS_DISTRO=${{ matrix.version.ros_distro }}
161161
BUILD=true
162162
VERSION=${{ steps.get_tag.outputs.highest_tag }}
163+
164+
delete-untagged-images:
165+
name: Delete Untagged Images
166+
runs-on: ubuntu-latest
167+
permissions:
168+
contents: read
169+
packages: write
170+
attestations: write
171+
id-token: write
172+
steps:
173+
- uses: actions/delete-package-versions@v5
174+
with:
175+
owner: 'ros-navigation'
176+
package-name: 'nav2_docker'
177+
package-type: 'container'
178+
min-versions-to-keep: 5
179+
delete-only-untagged-versions: 'true'
180+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)