From d7705bac64b745209beef780dc8c67e251b54cae Mon Sep 17 00:00:00 2001 From: Konrad Rokicki Date: Sat, 19 Oct 2024 13:37:35 -0400 Subject: [PATCH] updated dev docs --- docs/Development.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/Development.md b/docs/Development.md index aa99239..0011f0b 100644 --- a/docs/Development.md +++ b/docs/Development.md @@ -6,11 +6,20 @@ python -m pytest --cov=zarrcade --cov-report html -W ignore::DeprecationWarning ``` -## Docker build +## Building the Docker container -To rebuild and republish the Docker container (replacing 'latest' with the desired tag): +Run the Docker build, replacing `` with your version number: ```bash -docker build --no-cache docker -t ghcr.io/janeliascicomp/zarrcade:latest -docker push ghcr.io/janeliascicomp/zarrcade:latest +cd docker/ +export VERSION= +docker build . --build-arg GIT_TAG=$VERSION -t ghcr.io/janeliascicomp/zarrcade:$VERSION ``` + +## Pushing the Docker container + +```bash +docker push ghcr.io/janeliascicomp/zarrcade:$VERSION +docker tag ghcr.io/janeliascicomp/zarrcade:$VERSION ghcr.io/janeliascicomp/zarrcade:latest +docker push ghcr.io/janeliascicomp/zarrcade:latest +``` \ No newline at end of file