I am using Octopus Deploy to deploy container images to EKS from an ECR repo using the built-in “Deploy Kubernetes containers” step. This works fine. Let’s call this Step A.
My ECR image name is along the lines of environment/app/service
(sic), with the slashes in it.
I would like to deploy another Kubernetes resource (a Job) using the “Deploy raw Kubernetes YAML” step.
In this step I would like to refer to the version of the package from Step A that is being deployed as part of this release.
From the Octopus doco I believe I should be able to refer to the package version in a deployment step using the package name as an index, eg
Octopus.Action.Package[environment/app/service].PackageVersion
But this does not seem to resolve to anything.
Please advise how I can retrieve the package version of an ECR image being deployed to EKS.
Thanks,
Conor