fix: update Docker images in docker-compose to use 'develop' tag

This commit is contained in:
Siddhant Rai
2025-08-28 12:11:06 +05:30
parent 9da4215d1f
commit 5b7c7a4471
2 changed files with 3 additions and 40 deletions

View File

@@ -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

View File

@@ -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