Skip to content

Commit

Permalink
Update main-image-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila authored Feb 16, 2024
1 parent b7aebf6 commit 0da30b9
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/main-image-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 0da30b9

Please sign in to comment.