mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 20:07:46 +00:00
doc: Reuse $TAG for git checkout when building Docker images
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
d9c5096e92
commit
b32fd280fe
@ -156,7 +156,7 @@ Stage 2 - Staging
|
|||||||
cd /home/builduser/frr
|
cd /home/builduser/frr
|
||||||
TAG=X.Y.Z
|
TAG=X.Y.Z
|
||||||
git fetch --all
|
git fetch --all
|
||||||
git checkout frr-<version>
|
git checkout frr-$TAG
|
||||||
docker buildx build --platform linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7,linux/arm/v6 -f docker/alpine/Dockerfile -t quay.io/frrouting/frr:$TAG --push .
|
docker buildx build --platform linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7,linux/arm/v6 -f docker/alpine/Dockerfile -t quay.io/frrouting/frr:$TAG --push .
|
||||||
git tag docker/$TAG
|
git tag docker/$TAG
|
||||||
git push origin docker/$TAG
|
git push origin docker/$TAG
|
||||||
@ -165,7 +165,7 @@ Stage 2 - Staging
|
|||||||
create a git tag corresponding to the commit that the image was built
|
create a git tag corresponding to the commit that the image was built
|
||||||
from and upload that to Github. It's important that the git tag point to
|
from and upload that to Github. It's important that the git tag point to
|
||||||
the exact codebase that was used to build the docker image, so if any
|
the exact codebase that was used to build the docker image, so if any
|
||||||
changes need to be made on top of the ``frr-<version>`` release tag, make
|
changes need to be made on top of the ``frr-$TAG`` release tag, make
|
||||||
sure these changes are committed and pointed at by the ``docker/X.Y.Z``
|
sure these changes are committed and pointed at by the ``docker/X.Y.Z``
|
||||||
tag.
|
tag.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user