Skip to content

Create docker-image.yml #2

Create docker-image.yml

Create docker-image.yml #2

Workflow file for this run

name: Build and Publish Docker Image
on:
push:
branches:
- main # Adjust this branch as needed
workflow_dispatch: # Allows you to manually trigger the workflow
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}/blooo-ragflow:latest .
- name: Push Docker image
run: |
docker push ghcr.io/${{ github.repository }}/blooo-ragflow:latest