mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
Update main-image-workflow.yml
This commit is contained in:
parent
b7aebf6c51
commit
0da30b9481
1 changed files with 10 additions and 13 deletions
23
.github/workflows/main-image-workflow.yml
vendored
23
.github/workflows/main-image-workflow.yml
vendored
|
|
@ -30,6 +30,7 @@ jobs:
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Docker metadata for librechat
|
||||||
- name: Docker metadata for librechat
|
- name: Docker metadata for librechat
|
||||||
id: meta-librechat
|
id: meta-librechat
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
|
|
@ -42,17 +43,13 @@ jobs:
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
|
||||||
# Adjusted to correct the command and include retry logic
|
# Build and push librechat
|
||||||
- name: Build and push librechat with retry
|
- name: Build and push librechat
|
||||||
uses: nick-invision/retry@v3
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
timeout_minutes: 20
|
file: Dockerfile
|
||||||
max_attempts: 3
|
context: .
|
||||||
command: |
|
push: true
|
||||||
docker buildx build \
|
tags: ${{ steps.meta-librechat.outputs.tags }}
|
||||||
--file Dockerfile \
|
platforms: linux/amd64,linux/arm64
|
||||||
--push \
|
target: node
|
||||||
$(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