From 83c870ce920faf5dfe201a1d6f7f45a1b230f967 Mon Sep 17 00:00:00 2001 From: Md Imran Date: Fri, 18 Oct 2024 23:24:10 +0530 Subject: [PATCH] Update cd.yml Signed-off-by: Md Imran --- .github/workflows/cd.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 7ff3d24..0663fa9 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -31,7 +31,7 @@ jobs: VERSION=${GITHUB_REF##*/} echo "VERSION=$VERSION" >> $GITHUB_ENV - # Step 5: Build and Tag Docker Image + # Step 5: Build Docker Image - name: Build Docker Image run: | # Build Docker image @@ -39,9 +39,14 @@ jobs: # Tag the Docker image with the release version docker tag narmidm/k8stoolbox:latest narmidm/k8stoolbox:${{ env.VERSION }} - # Step 6: Push Docker Image + # Step 6: Push Docker Image with Latest and Version Tags - name: Push Docker Image run: | - # Push Docker image with latest and version tags + # Ensure the image is built and tagged successfully + docker images + + # Push Docker image with latest tag docker push narmidm/k8stoolbox:latest + + # Push Docker image with version tag docker push narmidm/k8stoolbox:${{ env.VERSION }}