BudAdmin: Build and Push Docker Image on Release #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "BudAdmin: Build and Push Docker Image on Release" | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| release_tag: | |
| description: 'Release version (e.g., 0.25.0)' | |
| required: true | |
| type: string | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to DockerHub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: ./services/budadmin | |
| push: true | |
| file: ./services/budadmin/Dockerfile | |
| tags: | | |
| budstudio/budadmin:${{ inputs.release_tag }} | |
| budstudio/budadmin:latest | |
| # Note: NEXT_PUBLIC_ENABLE_DEV_MODE defaults to false for production releases | |
| # Dev features (Prompts, Evaluations, Guard Rails) will be hidden |