Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 489fa87

Browse files
author
Afshin Paydar
committed
Add docker image to release with latest tag
1 parent 7bb8fa8 commit 489fa87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,15 @@ commands:
9696
command: |
9797
build_tag="${CIRCLE_SHA1}"
9898
[ "<< parameters.target >>" == "beta" ] && build_tag="beta-${CIRCLE_SHA1}"
99-
docker build -t ${DOCKHUB_ORGANISATION}/binary-static-bot:${build_tag} .
99+
docker build -t ${DOCKHUB_ORGANISATION}/binary-static-bot:${build_tag} -t ${DOCKHUB_ORGANISATION}/binary-static-bot:latest.
100100
- run:
101101
name: Pushing Image to docker hub
102102
command: |
103103
build_tag="${CIRCLE_SHA1}"
104104
[ "<< parameters.target >>" == "beta" ] && build_tag="beta-${CIRCLE_SHA1}"
105105
echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
106106
docker push ${DOCKHUB_ORGANISATION}/binary-static-bot:${build_tag}
107+
docker push ${DOCKHUB_ORGANISATION}/binary-static-bot:latest
107108
k8s_deploy:
108109
description: "Deploy to k8s cluster"
109110
parameters:

0 commit comments

Comments
 (0)