Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-8270

set the same tag expiry for ALL floating tags (not just the first one published)

    • RHDH COPE 3279, RHDH COPE 3280

      Continued from RHIDP-8172.

      Problem seems to be that the label quay.expires-after=183d is only applied to ONE of the FOUR tags set when releasing the community images

      Unclear if this is a bug in the docker/metadata-action@v5 workflow - seems likely so I've reported https://github.com/docker/metadata-action/issues/534

              - name: Set container metadata (for releases, 183d expiry)
                id: meta-release
                if: ${{ env.REF_NAME_SHORT != 'next' }}
                uses: docker/metadata-action@v5
                with:
                  images: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}
                  tags: |
                    type=raw,value=${{ env.REF_NAME }}
                    type=raw,value=${{ env.REF_NAME }}-${{ env.SHORT_SHA }}
                    type=raw,value=${{ env.REF_NAME_SHORT }}
                    type=raw,value=${{ env.REF_NAME_SHORT }}-${{ env.SHORT_SHA }}
                  labels: |
                    quay.expires-after=183d
      

      results in:

      • 5 tags with expiry, and
      • 3 with none

        1. image-2025-07-23-15-13-24-977.png
          100 kB
          Nick Boldt
        2. image-2025-09-15-16-52-48-483.png
          139 kB
          Nick Boldt
        3. screenshot-1.png
          83 kB
          Nick Boldt
        4. screenshot-2.png
          119 kB
          Nick Boldt

              rh-ee-mpolasko Martin Polasko
              nickboldt Nick Boldt
              RHIDP - Cope
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: