From 08085b3f73281c9aeb3df07f69e16db64119b96c Mon Sep 17 00:00:00 2001 From: Ahmed Hesham Date: Wed, 1 Oct 2025 13:22:37 +0300 Subject: [PATCH] update Docker Build & Push.yml --- .github/workflows/Docker Build & Push.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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