You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the documentation type=edge we read the following:
An edge tag reflects the last commit of the active branch on your Git repository. I usually prefer to use edge as a Docker tag for a better distinction or common pattern. This is also used by official images like Alpine.
My understanding is that the edge tag always points to the latest Docker image that has been created, regardless of the branch that was used to create it. i.e.:
Trigger Docker image creation using main branch. edge tag points to this Docker image.
Trigger Docker image creation using release/0.1.0. edge tag now points to this Docker image.
This can lead to unpredictable behavior in case we restart an already deployed service that uses the edge tag.
We should remove the type=edge tag and instead introduce a new tag type=ref,event=branch which produces predictable tags. The documentation can be found here
By using type=ref,event=branch instead of type=edge the following will happen:
Trigger Docker image creation using main branch. main tag points to this Docker image.
Trigger Docker image creation using release/0.1.0. release/0.1.0 tag points to this Docker image.
We no longer have an edge tag that is always updated to point to the latest Docker image generated regardless of the branch that was used to create it.
If we opt to use the above, we must apply this change both to main and release/0.1.0 branches.
The text was updated successfully, but these errors were encountered:
Currently publish-to-container-registry.yml workflow uses the following tags:
From the documentation type=edge we read the following:
My understanding is that the
edge
tag always points to the latest Docker image that has been created, regardless of the branch that was used to create it. i.e.:main
branch.edge
tag points to this Docker image.release/0.1.0
.edge
tag now points to this Docker image.This can lead to unpredictable behavior in case we restart an already deployed service that uses the
edge
tag.We should remove the
type=edge
tag and instead introduce a new tagtype=ref,event=branch
which produces predictable tags. The documentation can be found hereBy using
type=ref,event=branch
instead oftype=edge
the following will happen:main
branch.main
tag points to this Docker image.release/0.1.0
.release/0.1.0
tag points to this Docker image.edge
tag that is always updated to point to the latest Docker image generated regardless of the branch that was used to create it.If we opt to use the above, we must apply this change both to
main
andrelease/0.1.0
branches.The text was updated successfully, but these errors were encountered: