From 0da30b94810a838cf68fae6e98a464eaac9cced4 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Fri, 16 Feb 2024 15:46:09 -0500 Subject: [PATCH] Update main-image-workflow.yml --- .github/workflows/main-image-workflow.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main-image-workflow.yml b/.github/workflows/main-image-workflow.yml index 9636c34bb7..4f6f86d219 100644 --- a/.github/workflows/main-image-workflow.yml +++ b/.github/workflows/main-image-workflow.yml @@ -30,6 +30,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + # Docker metadata for librechat - name: Docker metadata for librechat id: meta-librechat uses: docker/metadata-action@v5 @@ -42,17 +43,13 @@ jobs: type=semver,pattern={{major}} type=semver,pattern={{major}}.{{minor}} - # Adjusted to correct the command and include retry logic - - name: Build and push librechat with retry - uses: nick-invision/retry@v3 + # Build and push librechat + - name: Build and push librechat + uses: docker/build-push-action@v5 with: - timeout_minutes: 20 - max_attempts: 3 - command: | - docker buildx build \ - --file Dockerfile \ - --push \ - $(echo "${{ steps.meta-librechat.outputs.tags }}" | sed "s/,/ --tag /g" | xargs echo --tag) \ - --platform linux/amd64,linux/arm64 \ - --target node \ - . + file: Dockerfile + context: . + push: true + tags: ${{ steps.meta-librechat.outputs.tags }} + platforms: linux/amd64,linux/arm64 + target: node