Merge pull request #27 from abskrj/feat/auth-brand-and-github-logo #25
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: Build and Push Docker Images | |
| on: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| REGISTRY: ghcr.io | |
| jobs: | |
| bump-version: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| outputs: | |
| new_tag: ${{ steps.tag_version.outputs.new_tag }} | |
| new_version: ${{ steps.tag_version.outputs.new_version }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Required to calculate next version based on history | |
| - name: Bump version and push tag | |
| id: tag_version | |
| uses: mathieudutour/github-tag-action@v6.2 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| default_bump: patch # Auto-increments patch version by default (e.g., 0.0.1 -> 0.0.2) | |
| build-and-push: | |
| needs: bump-version | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: control-plane | |
| context: . | |
| dockerfile: services/control-plane/Dockerfile | |
| - name: bun-executor | |
| context: ./services/executor-runtime/bun | |
| dockerfile: services/executor-runtime/bun/Dockerfile | |
| - name: python-executor | |
| context: ./services/executor-runtime/python | |
| dockerfile: services/executor-runtime/python/Dockerfile | |
| - name: admin | |
| context: ./apps/admin | |
| dockerfile: apps/admin/Dockerfile | |
| - name: mcp-server | |
| context: ./services/mcp-server | |
| dockerfile: services/mcp-server/Dockerfile | |
| - name: embed-dashboard | |
| context: ./apps/embed-dashboard | |
| dockerfile: apps/embed-dashboard/Dockerfile | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Log in to the Container registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/velane-${{ matrix.name }} | |
| tags: | | |
| type=raw,value=latest | |
| type=raw,value=${{ needs.bump-version.outputs.new_version }} | |
| type=sha | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: ${{ matrix.context }} | |
| file: ${{ matrix.dockerfile }} | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |