mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
Update main-image-workflow.yml
This commit is contained in:
parent
29ee4423a6
commit
b7aebf6c51
1 changed files with 13 additions and 5 deletions
18
.github/workflows/main-image-workflow.yml
vendored
18
.github/workflows/main-image-workflow.yml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: Docker Compose Build Latest Main Image (Manual Dispatch)
|
name: Docker Compose Build Latest Main Image Tag (Manual Dispatch)
|
||||||
|
|
||||||
# The workflow is manually triggered
|
# The workflow is manually triggered
|
||||||
on:
|
on:
|
||||||
|
|
@ -42,9 +42,17 @@ jobs:
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
|
||||||
- name: Retry Build and Push librechat
|
# Adjusted to correct the command and include retry logic
|
||||||
|
- name: Build and push librechat with retry
|
||||||
uses: nick-invision/retry@v3
|
uses: nick-invision/retry@v3
|
||||||
with:
|
with:
|
||||||
timeout_minutes: 20 # Total time to attempt retries
|
timeout_minutes: 20
|
||||||
max_attempts: 3 # Number of retry attempts
|
max_attempts: 3
|
||||||
command: docker buildx build --file Dockerfile --push --tags ${{ steps.meta-librechat.outputs.tags }} --platform linux/amd64,linux/arm64 --target node .
|
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 \
|
||||||
|
.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue