nithishkumar3 is running out Docker CI Pipeline 🚀 #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker CI Pipeline | |
| run-name: ${{ github.actor }} is running out Docker CI Pipeline 🚀 | |
| on: [push] | |
| jobs: | |
| hello-world-job: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone the code | |
| uses: actions/checkout@v6 | |
| - name: Build the image | |
| run: docker build -t ${{ vars.DOCKERHUB_USERNAME }}/helloworld-demo-python:v1 . | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ vars.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Push the image | |
| run: docker push ${{ vars.DOCKERHUB_USERNAME }}/helloworld-demo-python:v1 |