Skip to content

Commit 1f3a173

Browse files
committed
fix: Filter only built images when tagging as latest in CD
Problem: docker compose config --images returns ALL images including external ones (rabbitmq, appinsights, azurite) that are not built by us. Attempting to tag these as 'latest' fails with 'No such image' error. Solution: Filter images by DOCKER_USERNAME to only tag our built images (ascoderu/opwenserver_app, ascoderu/opwenwebapp, etc.) This fixes the CD pipeline failure when running release-docker target.
1 parent fcb0dc3 commit 1f3a173

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ release-docker:
7878
export VERSION="$(DOCKER_TAG)"; \
7979
export DOCKER_REPO="$(DOCKER_USERNAME)"; \
8080
docker compose build $(DOCKER_BUILD_ARGS) && \
81-
docker compose config --images | grep -v "^$$" | while read image; do \
81+
docker compose config --images | grep "$(DOCKER_USERNAME)" | while read image; do \
8282
docker tag "$$image" "$${image%:*}:latest"; \
8383
done
8484

0 commit comments

Comments
 (0)