Skip to content

Commit

Permalink
(actions) use organization-packages action
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Sep 19, 2023
1 parent d54176f commit 96745b3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/cleanup_container_tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,26 @@ name: Cleanup container tags
on: delete

jobs:
organization_containers:
name: Get all containers in the organization
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.organization-containers.outputs.packages }}
steps:
- name: Organization containers
id: organization_containers
uses: tue-robotics/tue-env/ci/organization-packages@master
with:
package-type: container

delete_container_tag:
name: Delete container tag
runs-on: ubuntu-latest
needs: organization_containers
strategy:
fail-fast: false
matrix:
package_name: ["tue-env-ros-noetic", "tue-env-ros-galactic", "tue-env-ros-humble"]
package_name: ${{ fromJson(needs.organization_containers.outputs.packages) }}
steps:
- name: Generate tag
id: generate-tag
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/cleanup_untagged_containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,26 @@ on:
workflow_dispatch:

jobs:
organization_containers:
name: Get all containers in the organization
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.organization-containers.outputs.packages }}
steps:
- name: Organization containers
id: organization_containers
uses: tue-robotics/tue-env/ci/organization-packages@MatthijsBurgh-patch-1
with:
package-type: container

delete_untagged_containers:
name: Delete untagged containers
runs-on: ubuntu-latest
needs: organization_containers
strategy:
fail-fast: false
matrix:
package_name: ["tue-env-ros-noetic", "tue-env-ros-galactic", "tue-env-ros-humble"]
package_name: ${{ fromJson(needs.organization_containers.outputs.packages) }}
steps:
- uses: actions/delete-package-versions@v4
with:
Expand Down

0 comments on commit 96745b3

Please sign in to comment.