Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
n4l5u0r authored Sep 27, 2024
1 parent dbe0703 commit 662ea83
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Build and Publish Docker Image
on:
push:
branches:
- main # Adjust this branch as needed
workflow_dispatch: # Allows you to manually trigger the workflow
- main
workflow_dispatch:

jobs:
build-and-publish:
Expand All @@ -14,6 +14,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -26,8 +32,8 @@ jobs:

- name: Build Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}/blooo-ragflow:latest .
docker build -t ghcr.io/${{ github.repository }}/your-image-name:latest .
- name: Push Docker image
run: |
docker push ghcr.io/${{ github.repository }}/blooo-ragflow:latest
docker push ghcr.io/${{ github.repository }}/your-image-name:latest

0 comments on commit 662ea83

Please sign in to comment.