Ahh, yep the second option worked – looks like I’ve got a new machine using the pushed image, and the --schedule
switch was accepted, so I’ll find out if it runs sometime tomorrow.
So what’s the best approach to deploying updated images? It seems like you can’t / aren’t supposed to update machines with new images – just stopping it if necessary and removing it and creating a new one is preferred? How does that integrate with e.g. Github actions? If I understand correctly, I’d want to:
- push the new image
- deploy a new machine using the new ID
- destroy the existing machine if the deploy is successful.
However for step 2 you’d need the image ID you just created, and for step 3 you’d need the current machine ID.
(Sorry, just thinking out loud here)