Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish full image ref as result #9

Closed
michaelsauter opened this issue Nov 22, 2023 · 0 comments · Fixed by #10
Closed

Publish full image ref as result #9

michaelsauter opened this issue Nov 22, 2023 · 0 comments · Fixed by #10
Labels
enhancement New feature or request

Comments

@michaelsauter
Copy link
Member

Right now only the digest is published. It would be nice to publish the image ref (including registry, image stream, etc.) to make use of it in other tasks. For example, one could have a separate task which signs the image (although signing could/should likely also be part of this task):

- name: sign
  runAfter:
    - package
  taskSpec:
    params:
      - { name: image-ref, type: 'string' }
    steps:
      - name: sign
        image: cgr.dev/chainguard/cosign
        imagePullPolicy: IfNotPresent
        script: |
          cosign sign --tlog-upload=false --key k8s://<namespace>/<secret> $(params.image-ref)
  params:
    - { name: image-ref, value: '$(tasks.package.results.image-ref)' }
@michaelsauter michaelsauter added the enhancement New feature or request label Nov 22, 2023
This was referenced Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant