when a PR is created (and on each push to PR): this will create two tags per build; one for git commit sha and one for branch-name. The sha tag considered immutable, a new one is created for each consequent commit, the branch-name is a floating (moving) tag, always points to the latest commit sha on the branch.
when a branch is merged to master: this will create two tags, one for sha and one (per convention) latest that points to the HEAD of the master branch.
Generally latest should be used for devcontainer, others are for supporting infra changes if needed.
To speed up
devcontainer
starts, build a partial image and use that as a base image for development.Container images are stored at https://github.com/swindonmakers/AccessSystem/pkgs/container/access-system-dev
There are 3 triggers for image builds:
sha
and one forbranch-name
. Thesha
tag considered immutable, a new one is created for each consequent commit, thebranch-name
is a floating (moving) tag, always points to the latest commit sha on the branch.master
: this will create two tags, one forsha
and one (per convention)latest
that points to theHEAD
of themaster
branch.Generally
latest
should be used fordevcontainer
, others are for supporting infra changes if needed.