Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
n4l5u0r authored Sep 27, 2024
1 parent 674d342 commit 739b7bb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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

0 comments on commit 739b7bb

Please sign in to comment.