Skip to content

Commit

Permalink
Fix issues with Docker pushing tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhellstrom committed Sep 5, 2024
1 parent ac1ef11 commit 2f658fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Python packages:

### Zoose Neo4j
Zoose Neo4j includes everything from Zoose Base as well as:
- Neo4j Community Edition 5
- Neo4j Community Edition 4.4
- neomodel 5.3.2

### Zoose PyTorch
Expand Down
8 changes: 5 additions & 3 deletions push_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ source .env
for dir in *; do
if [ -d "${dir}" ]; then
if [ "${dir}" != "gitpod" ]; then
docker tag "${PREFIX}-${dir}" "${PREFIX}-${dir}:${TAG}"
docker push "${PREFIX}-${dir}:${TAG}"
docker tag "${PREFIX}-${dir}:${TAG}" "${PREFIX}-${dir}:latest"
docker tag "${PREFIX}-${dir}" "${PREFIX}-${dir}:latest"
docker push "${PREFIX}-${dir}:latest"
else
docker tag "${PREFIX}-base-${dir}" "${PREFIX}-base-${dir}:${TAG}"
docker push "${PREFIX}-base-${dir}:${TAG}"
docker tag "${PREFIX}-base-${dir}:${TAG}" "${PREFIX}-base-${dir}:latest"
docker tag "${PREFIX}-base-${dir}" "${PREFIX}-base-${dir}:latest"
docker push "${PREFIX}-base-${dir}:latest"
docker push "${PREFIX}-quantum-${dir}:${TAG}"
docker tag "${PREFIX}-quantum-${dir}:${TAG}" "${PREFIX}-quantum-${dir}:latest"
docker tag "${PREFIX}-quantum-${dir}" "${PREFIX}-quantum-${dir}:latest"
docker push "${PREFIX}-quantum-${dir}:latest"
fi
fi
Expand Down
6 changes: 3 additions & 3 deletions push_docker_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ source .env
for dir in *; do
if [ -d "${dir}" ]; then
if [ "${dir}" != "gitpod" ]; then
docker tag "${PREFIX}-${dir}:${TAG}" "${PREFIX}-${dir}:dev-${TAG}"
docker tag "${PREFIX}-${dir}" "${PREFIX}-${dir}:dev-${TAG}"
docker push "${PREFIX}-${dir}:dev-${TAG}"
else
docker tag "${PREFIX}-base-${dir}:${TAG}" "${PREFIX}-base-${dir}:dev-${TAG}"
docker tag "${PREFIX}-base-${dir}" "${PREFIX}-base-${dir}:dev-${TAG}"
docker push "${PREFIX}-base-${dir}:dev-${TAG}"
docker tag "${PREFIX}-quantum-${dir}:${TAG}" "${PREFIX}-quantum-${dir}:dev-${TAG}"
docker tag "${PREFIX}-quantum-${dir}" "${PREFIX}-quantum-${dir}:dev-${TAG}"
docker push "${PREFIX}-quantum-${dir}:dev-${TAG}"
fi
fi
Expand Down

0 comments on commit 2f658fd

Please sign in to comment.