Skip to content

Commit

Permalink
Update ci-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitinnangnurkar authored Sep 18, 2024
1 parent 5dcc5b2 commit 3574d4d
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,41 @@

name: CI/CD Pipeline for Clustering App

on:
push:
branches:
# - main
# pull_request:
# branches:
# - main

# jobs:
# build:
# runs-on: ubuntu-latest

# steps:
# - name: Checkout code
# uses: actions/checkout@v2

# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.9'

# - name: Install dependencies
# run: |
# pip install -r requirements.txt

# - name: Build Docker image
# run: docker build -t clustering-app .

# - name: Push Docker image to DockerHub
# run: |
# docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
# docker tag clustering-app your-dockerhub-username/clustering-app:latest
# docker push your-dockerhub-username/clustering-app:latest


name: CI/CD Pipeline for Clustering App

on:
Expand Down Expand Up @@ -31,6 +68,7 @@ jobs:

- name: Push Docker image to DockerHub
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker tag clustering-app your-dockerhub-username/clustering-app:latest
docker push your-dockerhub-username/clustering-app:latest
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
docker tag clustering-app ${{ secrets.DOCKER_USERNAME }}/clustering-app:latest
docker push ${{ secrets.DOCKER_USERNAME }}/clustering-app:latest

0 comments on commit 3574d4d

Please sign in to comment.