Update Docker build workflow to enhance image build and push steps

This commit is contained in:
Korzhavin Ivan 2025-04-24 22:45:54 +02:00
parent c07d980f0c
commit 0106388297
1 changed files with 8 additions and 1 deletions

View File

@ -15,6 +15,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
@ -29,6 +32,8 @@ jobs:
file: ./backend/Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/suna-backend:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push Frontend image
uses: docker/build-push-action@v5
@ -36,4 +41,6 @@ jobs:
context: ./frontend
file: ./frontend/Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/suna-frontend:latest
tags: ghcr.io/${{ github.repository }}/suna-frontend:latest
cache-from: type=gha
cache-to: type=gha,mode=max