feat: server-side favicon proxy #551
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 ARM64 Docker Image | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - personal | |
| tags: | |
| - v* | |
| env: | |
| REGISTRY: ghcr.io | |
| jobs: | |
| build-arm64-image: | |
| runs-on: ubuntu-24.04-arm | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Set repository and image name to lowercase | |
| run: | | |
| echo "IMAGE_NAME=${IMAGE_NAME,,}" >>${GITHUB_ENV} | |
| echo "FULL_IMAGE_NAME=ghcr.io/${IMAGE_NAME,,}" >>${GITHUB_ENV} | |
| env: | |
| IMAGE_NAME: '${{ github.repository }}' | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Log in to the Container registry | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract metadata for Docker images | |
| id: meta | |
| uses: docker/metadata-action@v6 | |
| with: | |
| images: ${{ env.FULL_IMAGE_NAME }} | |
| tags: | | |
| type=ref,event=branch | |
| type=ref,event=tag | |
| type=sha,prefix=git- | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| flavor: | | |
| latest=${{ github.ref == 'refs/heads/main' }} | |
| - name: Extract metadata for Docker cache | |
| id: cache-meta | |
| uses: docker/metadata-action@v6 | |
| with: | |
| images: ${{ env.FULL_IMAGE_NAME }} | |
| tags: | | |
| type=ref,event=branch | |
| ${{ github.ref_type == 'tag' && 'type=raw,value=main' || '' }} | |
| flavor: | | |
| prefix=cache-arm64- | |
| latest=false | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v7 | |
| id: build | |
| with: | |
| context: . | |
| push: true | |
| platforms: linux/arm64 | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| cache-from: type=registry,ref=${{ steps.cache-meta.outputs.tags }} | |
| cache-to: type=registry,ref=${{ steps.cache-meta.outputs.tags }},mode=max | |
| build-args: | | |
| BUILD_HASH=${{ github.sha }} | |
| USE_SLIM=true | |
| - name: Inspect image | |
| run: | | |
| docker buildx imagetools inspect ${{ env.FULL_IMAGE_NAME }}:${{ steps.meta.outputs.version }} |