On <https://docs.github.com/en/actions/using-jobs/...
# github-actions
o
On https://docs.github.com/en/actions/using-jobs/running-jobs-in-a-container it shows how you can run a GA job in a container. I have a docker image that has build tools in a private repo in AWS ECR, so we need to generate a token (aws ecr get-login-password). Can one job generate the token and the next job uses it? Does this then prevent us from ever re-running individual jobs of a workflow?
g
@Dan Miller (Cloud Posse)
d
although we typically use an AWS role that has access to ECR and assume the role with Github OIDC
o
Thanks @Dan Miller (Cloud Posse)
Btw I found out that if you rerun a job it automatically runs jobs that depend on it (ie have a
needs
property that points to it). So it might work to re-run the password getter job, this would auto run the job that needs that password.
👍 1