WIP. A little custom music server
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix? ci

+84 -84
+84 -84
.github/workflows/backend.yaml
··· 1 1 name: Backend CI/CD 2 2 3 3 on: 4 - push: 5 - branches: 6 - - main 7 - - develop 8 - paths: 9 - - 'backend/**' 10 - - 'shared/**' 11 - - 'package.json' 12 - - 'bun.lock' 13 - - '.github/workflows/backend.yaml' 14 - pull_request: 15 - branches: 16 - - main 17 - - develop 18 - paths: 19 - - 'backend/**' 20 - - 'shared/**' 21 - - 'package.json' 22 - - 'bun.lock' 23 - - '.github/workflows/backend.yaml' 4 + push: 5 + branches: 6 + - main 7 + - develop 8 + paths: 9 + - "backend/**" 10 + - "shared/**" 11 + - "package.json" 12 + - "bun.lock" 13 + - ".github/workflows/backend.yaml" 14 + pull_request: 15 + branches: 16 + - main 17 + - develop 18 + paths: 19 + - "backend/**" 20 + - "shared/**" 21 + - "package.json" 22 + - "bun.lock" 23 + - ".github/workflows/backend.yaml" 24 24 25 25 env: 26 - REGISTRY: ghcr.io 27 - IMAGE_NAME: ${{ github.repository }}-backend 26 + REGISTRY: ghcr.io 27 + IMAGE_NAME: ${{ github.repository }}-backend 28 28 29 29 jobs: 30 - build-and-test: 31 - runs-on: ubuntu-latest 32 - permissions: 33 - contents: read 30 + build-and-test: 31 + runs-on: ubuntu-latest 32 + permissions: 33 + contents: read 34 34 35 - steps: 36 - - name: Checkout code 37 - uses: actions/checkout@v4 35 + steps: 36 + - name: Checkout code 37 + uses: actions/checkout@v4 38 38 39 - - name: Setup Bun 40 - uses: oven-sh/setup-bun@v2 41 - with: 42 - bun-version: latest 39 + - name: Setup Bun 40 + uses: oven-sh/setup-bun@v2 41 + with: 42 + bun-version: latest 43 43 44 - - name: Cache Bun dependencies 45 - uses: actions/cache@v4 46 - with: 47 - path: ~/.bun/install/cache 48 - key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} 49 - restore-keys: | 50 - ${{ runner.os }}-bun- 44 + - name: Cache Bun dependencies 45 + uses: actions/cache@v4 46 + with: 47 + path: ~/.bun/install/cache 48 + key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} 49 + restore-keys: | 50 + ${{ runner.os }}-bun- 51 51 52 - - name: Install dependencies 53 - run: bun install --frozen-lockfile 52 + - name: Install dependencies 53 + run: bun install --frozen-lockfile 54 54 55 - - name: Run backend tests 56 - run: bun --filter @boombox/backend test 57 - working-directory: ./ 55 + - name: Run backend tests 56 + run: bun --filter @boombox/backend test 57 + working-directory: ./ 58 58 59 - - name: Build backend 60 - run: bun --filter @boombox/backend build 61 - working-directory: ./ 59 + - name: Build backend 60 + run: bun --filter @boombox/backend build 61 + working-directory: ./ 62 62 63 - docker-publish: 64 - runs-on: ubuntu-latest 65 - needs: build-and-test 66 - if: github.ref == 'refs/heads/main' && github.event_name == 'push' 67 - permissions: 68 - contents: read 69 - packages: write 63 + docker-publish: 64 + runs-on: ubuntu-latest 65 + needs: build-and-test 66 + if: github.ref == 'refs/heads/main' && github.event_name == 'push' 67 + permissions: 68 + contents: read 69 + packages: write 70 70 71 - steps: 72 - - name: Checkout code 73 - uses: actions/checkout@v4 71 + steps: 72 + - name: Checkout code 73 + uses: actions/checkout@v4 74 74 75 - - name: Set up Docker Buildx 76 - uses: docker/setup-buildx-action@v3 75 + - name: Set up Docker Buildx 76 + uses: docker/setup-buildx-action@v3 77 77 78 - - name: Log in to GitHub Container Registry 79 - uses: docker/login-action@v3 80 - with: 81 - registry: ${{ env.REGISTRY }} 82 - username: ${{ github.actor }} 83 - password: ${{ secrets.GITHUB_TOKEN }} 78 + - name: Log in to GitHub Container Registry 79 + uses: docker/login-action@v3 80 + with: 81 + registry: ${{ env.REGISTRY }} 82 + username: ${{ github.actor }} 83 + password: ${{ secrets.GITHUB_TOKEN }} 84 84 85 - - name: Extract metadata (tags, labels) 86 - id: meta 87 - uses: docker/metadata-action@v5 88 - with: 89 - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 90 - tags: | 91 - type=raw,value=latest,enable={{is_default_branch}} 92 - type=sha,prefix=sha-,format=short 85 + - name: Extract metadata (tags, labels) 86 + id: meta 87 + uses: docker/metadata-action@v5 88 + with: 89 + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 90 + tags: | 91 + type=raw,value=latest,enable={{is_default_branch}} 92 + type=sha,prefix=sha-,format=short 93 93 94 - - name: Build and push Docker image 95 - uses: docker/build-push-action@v5 96 - with: 97 - context: . 98 - file: ./backend/Dockerfile 99 - push: true 100 - tags: ${{ steps.meta.outputs.tags }} 101 - labels: ${{ steps.meta.outputs.labels }} 102 - cache-from: type=gha 103 - cache-to: type=gha,mode=max 94 + - name: Build and push Docker image 95 + uses: docker/build-push-action@v5 96 + with: 97 + context: . 98 + file: ./backend/Dockerfile 99 + push: true 100 + tags: ${{ steps.meta.outputs.tags }} 101 + labels: ${{ steps.meta.outputs.labels }} 102 + cache-from: type=gha 103 + cache-to: type=gha,mode=max