Skip to content

Commit

Permalink
Makefile: Improve docker-push target to always push latest (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
slovdahl authored Jan 25, 2024
1 parent 17c7724 commit 5af1d95
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ docker-push:
else \
docker login; \
fi
docker tag hiboxsystems/marge-bot:$$(cat version) hiboxsystems/marge-bot:$(VERSION)

docker tag hiboxsystems/marge-bot:$$(cat version) hiboxsystems/marge-bot:latest; \
docker push hiboxsystems/marge-bot:latest;

if [ "$(VERSION)" = "$$(cat version)" ]; then \
docker tag hiboxsystems/marge-bot:$$(cat version) hiboxsystems/marge-bot:latest; \
docker tag hiboxsystems/marge-bot:$$(cat version) hiboxsystems/marge-bot:$(VERSION); \
docker tag hiboxsystems/marge-bot:$$(cat version) hiboxsystems/marge-bot:stable; \
docker push hiboxsystems/marge-bot:$(VERSION); \
docker push hiboxsystems/marge-bot:stable; \
docker push hiboxsystems/marge-bot:latest; \
fi
docker push hiboxsystems/marge-bot:$(VERSION)

0 comments on commit 5af1d95

Please sign in to comment.