This adds a lot of duplication, since I left out build args and caching for simplicity, but in the real world there's a list of stuff being duplicated.
I know the latest tag is nothing special but it's common convention nowadays. It enables me to have a docker-compose manifest that just uses the latest tag.
Description
Requirement:
when the build is running on
main
, tag the resulting image as:latest
additionallyCurrent solution:
I duplicated the step with two sets of tags, using github's conditions to choose one of them:
This adds a lot of duplication, since I left out build args and caching for simplicity, but in the real world there's a list of stuff being duplicated.
My wish:
I know the latest tag is nothing special but it's common convention nowadays. It enables me to have a docker-compose manifest that just uses the latest tag.