Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Tracking Image Deployments by Image instead of Tag

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 8 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      Stephen.Schaff
      last edited by

      I use a command like this to add "Image Deployment" metadata:

      Invoke-RestMethod -Method Post -Uri 'https://cr.mycompany.net/api/package-deployment/' -Body 'FeedName=MyFeed&Application=OctopusDeploy&Description=Testing Release&Target=Openshift-cert-software-operations-test-apps&PackageName=runtime/addition-service&Version=2.0.0.477'
      

      This adds a row on the "Usage & Statistics" tab of a container image's tag. But it is only of limited use because it is attached to the tag, not the container image.

      If I update the tag with a new image, all the deployment information moves to the new container image that is assigned the tag.

      Is there a way I can send my command so that it is tracked by the container? (So I know when the container image was deployed and for what version it was deployed as?)

      dean-houstonD 1 Reply Last reply Reply Quote
      • dean-houstonD Offline
        dean-houston inedo-engineer @Stephen.Schaff
        last edited by

        Hi @stephen.schaff ,

        I'm afraid not; those particular feature (i.e. the database tables) are designed to hold the underlying tags, not the digests. It's non trivial change, and it aligns with best practices in using "immutable tags" -- especially when you're using version tags like 2.0.0.477'.

        -- Dean

        1 Reply Last reply Reply Quote

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation