Skip to content

Commit

Permalink
improved jq filter
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Oct 4, 2024
1 parent 972be78 commit ec140ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cleanup_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
- name: Get package names from bake definition
env:
JQ_FILTER: >-
.target[]
| select(.output | index("type=docker")).tags[]
| split("/")[-1]
| split(":")[0]
.target
| map(select(.output | index("type=docker")))
| map(.tags[] | split("/")[-1] | split(":")[0])
| join(",")
run: |
echo PACKAGE_NAMES=$(docker buildx bake --print | jq '${{ env.JQ_FILTER }}' | jq -rn '[inputs] | join(",")') >> $GITHUB_ENV
echo PACKAGE_NAMES=$(docker buildx bake --print | jq '${{ env.JQ_FILTER }}') >> $GITHUB_ENV
- name: Remove tag ${{format('pr-{0}', github.event.pull_request.number)}} after PR is closed
uses: dataaxiom/ghcr-cleanup-action@98b4022383d6ddb70ccbf6a378b4d8c67a60f066 # v1.0.13
if: github.event_name == 'pull_request'
Expand Down

0 comments on commit ec140ce

Please sign in to comment.