This repository was archived by the owner on Sep 7, 2025. It is now read-only.
Fix video playback (Upgrade requirements) #27
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 publish Docker image | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "src/**" | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: ${{ github.repository }} | |
| jobs: | |
| build-and-publish-alpine: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout ποΈ | |
| uses: actions/checkout@v3 | |
| - name: Login to container registry π | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract metadata π·οΈ | |
| id: meta | |
| uses: docker/metadata-action@v4 | |
| with: | |
| images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
| - name: π¨ Build and Publish alpine π | |
| uses: docker/build-push-action@v3 | |
| with: | |
| context: src | |
| push: true | |
| tags: ${{ env.REGISTRY }}/cc-youcube/youcube:latest,${{ env.REGISTRY }}/cc-youcube/youcube:alpine | |
| labels: ${{ steps.meta.outputs.labels }} | |
| build-and-publish-nvidia: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout ποΈ | |
| uses: actions/checkout@v3 | |
| - name: Login to container registry π | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract metadata π·οΈ | |
| id: meta | |
| uses: docker/metadata-action@v4 | |
| with: | |
| images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
| - name: π¨ Build and Publish nvidia π | |
| uses: docker/build-push-action@v3 | |
| with: | |
| file: src/Dockerfile.nvidia | |
| context: src | |
| push: true | |
| tags: ${{ env.REGISTRY }}/cc-youcube/youcube:ubuntu-nvidia | |
| labels: ${{ steps.meta.outputs.labels }} |