diff --git a/.github/workflows/Docker Build & Push.yml b/.github/workflows/Docker Build & Push.yml index 2d0be50..33a57d0 100644 --- a/.github/workflows/Docker Build & Push.yml +++ b/.github/workflows/Docker Build & Push.yml @@ -13,14 +13,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5.0.0 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag ahmedhesham301/jobfitai:$(date +%s) - + - name: checkout code + uses: actions/checkout@v5.0.0 + - name: login to dockerhub uses: docker/login-action@v3.6.0 with: username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: ahmedhesham301/jobfitai:$(date +%s) \ No newline at end of file