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 }}