Fixed the alphabetization of the metadata providers #137
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 & Push - Dev | |
| # Automatically builds and pushes a multi-platform dev image based on commits involving key files in any branch | |
| on: | |
| push: | |
| branches: | |
| - '**' # Runs on pushes to any branch | |
| paths: | |
| - 'empty_library/**' | |
| - 'root/**' | |
| - 'scripts/**' | |
| - '**/Dockerfile' | |
| - '**/requirements.txt' | |
| create: | |
| branches: | |
| - '**' # Runs when a new branch is created | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: github.event.ref_type == 'branch' || github.event_name == 'push' # Ensures it runs for branch creation & push events | |
| steps: | |
| - name: Checkout correct branch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.ref }} | |
| - name: Determine Docker Image Tag | |
| id: tag | |
| run: | | |
| if [[ "${{ github.ref_name }}" == "main" ]]; then | |
| echo "IMAGE_TAG=dev" >> $GITHUB_ENV | |
| else | |
| echo "IMAGE_TAG=dev-${{ github.ref_name }}" >> $GITHUB_ENV | |
| fi | |
| - name: DockerHub Login | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_PA_TOKEN }} | |
| - name: Install QEMU | |
| run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| provenance: false # Disable provenance metadata to fix BuildKit issues | |
| context: . | |
| file: ./Dockerfile | |
| push: true | |
| build-args: | | |
| BUILD_DATE=${{ github.event.repository.updated_at }} | |
| VERSION=${{ vars.CURRENT_DEV_VERSION }}-DEV_BUILD-${{ env.IMAGE_TAG }}-${{ vars.CURRENT_DEV_BUILD_NUM }} | |
| tags: | | |
| ${{ secrets.DOCKERHUB_USERNAME }}/calibre-web-automated:dev | |
| platforms: linux/amd64,linux/arm64 | |
| - name: Increment dev build number | |
| uses: action-pack/increment@v2 | |
| id: increment | |
| with: | |
| name: 'CURRENT_DEV_BUILD_NUM' | |
| token: ${{ secrets.DEV_BUILD_NUM_INCREMENTOR_TOKEN }} |