fix(admin): use the floating top-right toast instead of scroll-to-top… #24
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 & Publish Docker (x64) | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| workflow_dispatch: | |
| jobs: | |
| build-docker-x64: | |
| name: Build & Push Docker Image (amd64) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Verify ARVIO public APP_ANON_KEY validity | |
| run: | | |
| KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InpyZHd2b3J0Y2Zub3lrbHR6dXFmIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjY3NDU4NzMsImV4cCI6MjA4MjMyMTg3M30.YfKZbSwxGs6_xMd6jkDtn1PKkfuyOHo9qVhUvFRddGU" | |
| resp=$(curl -s -X POST "https://auth.arvio.tv/.netlify/functions/auth-login" \ | |
| -H "Content-Type: application/json" \ | |
| -H "apikey: $KEY" \ | |
| -d '{"email":"ci-test@example.com","password":"test"}') | |
| if echo "$resp" | grep -q '"error":"Unauthorized"'; then | |
| echo "::error::ARVIO public APP_ANON_KEY has been rotated or invalidated on auth.arvio.tv!" | |
| exit 1 | |
| fi | |
| echo "ARVIO APP_ANON_KEY verified successfully against auth.arvio.tv" | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to GitHub Container Registry (GHCR) | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract Docker metadata (standard image) | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ghcr.io/${{ github.repository }} | |
| tags: | | |
| type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} | |
| type=ref,event=branch | |
| type=semver,pattern={{version}} | |
| type=sha,format=short | |
| - name: Build and push x64 Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: Dockerfile | |
| platforms: linux/amd64 | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| cache-from: type=gha,scope=docker-x64 | |
| cache-to: type=gha,mode=max,scope=docker-x64 | |
| - name: Extract Docker metadata (omnibus image) | |
| id: meta-omnibus | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ghcr.io/${{ github.repository }} | |
| flavor: | | |
| suffix=-omnibus | |
| tags: | | |
| type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} | |
| type=ref,event=branch | |
| type=semver,pattern={{version}} | |
| type=sha,format=short | |
| - name: Build and push x64 Omnibus Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: Dockerfile.omnibus | |
| platforms: linux/amd64 | |
| push: true | |
| tags: ${{ steps.meta-omnibus.outputs.tags }} | |
| labels: ${{ steps.meta-omnibus.outputs.labels }} | |
| cache-from: type=gha,scope=docker-omnibus-x64 | |
| cache-to: type=gha,mode=max,scope=docker-omnibus-x64 |