mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
fix: update Docker images in docker-compose to use 'develop' tag
This commit is contained in:
37
.github/workflows/docker-publish.yml
vendored
37
.github/workflows/docker-publish.yml
vendored
@@ -1,37 +0,0 @@
|
||||
# This GitHub Actions workflow builds and pushes Docker images to Docker Hub
|
||||
# only when a GitHub release is published and the tag name contains 'latest'.
|
||||
# The image is tagged as both the release tag and 'latest'.
|
||||
|
||||
|
||||
name: Build and Push Docker Images (Release: latest only)
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image (only for releases with 'latest' in tag)
|
||||
if: github.event_name == 'release' && contains(github.event.release.tag_name, 'latest')
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./application/Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
arc53/docsgpt:${{ github.event.release.tag_name }}
|
||||
arc53/docsgpt:latest
|
||||
@@ -1,7 +1,7 @@
|
||||
name: docsgpt-oss
|
||||
services:
|
||||
frontend:
|
||||
image: arc53/docsgpt:latest
|
||||
image: arc53/docsgpt:develop
|
||||
environment:
|
||||
- VITE_API_HOST=http://localhost:7091
|
||||
- VITE_API_STREAMING=$VITE_API_STREAMING
|
||||
@@ -12,7 +12,7 @@ services:
|
||||
|
||||
backend:
|
||||
user: root
|
||||
image: arc53/docsgpt:latest
|
||||
image: arc53/docsgpt:develop
|
||||
environment:
|
||||
- API_KEY=$API_KEY
|
||||
- EMBEDDINGS_KEY=$API_KEY
|
||||
@@ -35,7 +35,7 @@ services:
|
||||
|
||||
worker:
|
||||
user: root
|
||||
image: arc53/docsgpt:latest
|
||||
image: arc53/docsgpt:develop
|
||||
command: celery -A application.app.celery worker -l INFO -B
|
||||
environment:
|
||||
- API_KEY=$API_KEY
|
||||
|
||||
Reference in New Issue
Block a user