Update dependency bullmq to v5.80.0 (#975) #201
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 Docker Images | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| workflow_dispatch: | |
| concurrency: | |
| group: build-images | |
| cancel-in-progress: true | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_PREFIX: ghcr.io/appsilon/mediforce | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: linux/amd64 | |
| runner: ubuntu-latest | |
| - platform: linux/arm64 | |
| runner: ubuntu-24.04-arm | |
| runs-on: ${{ matrix.runner }} | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Sanitise platform slug | |
| run: echo "PLATFORM_SLUG=$(echo '${{ matrix.platform }}' | tr '/' '-')" >> $GITHUB_ENV | |
| - name: Build & push platform-ui (${{ matrix.platform }}) | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: packages/platform-ui/Dockerfile | |
| target: runner | |
| platforms: ${{ matrix.platform }} | |
| push: true | |
| tags: | | |
| ${{ env.IMAGE_PREFIX }}-platform-ui:${{ env.PLATFORM_SLUG }} | |
| cache-from: type=gha,scope=platform-ui-${{ env.PLATFORM_SLUG }} | |
| cache-to: type=gha,mode=max,scope=platform-ui-${{ env.PLATFORM_SLUG }} | |
| - name: Build & push migrate (${{ matrix.platform }}) | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: packages/platform-ui/Dockerfile | |
| target: migrate | |
| platforms: ${{ matrix.platform }} | |
| push: true | |
| tags: | | |
| ${{ env.IMAGE_PREFIX }}-migrate:${{ env.PLATFORM_SLUG }} | |
| cache-from: type=gha,scope=migrate-${{ env.PLATFORM_SLUG }} | |
| cache-to: type=gha,mode=max,scope=migrate-${{ env.PLATFORM_SLUG }} | |
| - name: Build & push container-worker (${{ matrix.platform }}) | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: packages/container-worker/Dockerfile.worker | |
| platforms: ${{ matrix.platform }} | |
| push: true | |
| tags: | | |
| ${{ env.IMAGE_PREFIX }}-container-worker:${{ env.PLATFORM_SLUG }} | |
| cache-from: type=gha,scope=container-worker-${{ env.PLATFORM_SLUG }} | |
| cache-to: type=gha,mode=max,scope=container-worker-${{ env.PLATFORM_SLUG }} | |
| merge-manifests: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Create multi-arch manifest — platform-ui | |
| run: | | |
| docker buildx imagetools create \ | |
| --tag ${{ env.IMAGE_PREFIX }}-platform-ui:latest \ | |
| --tag ${{ env.IMAGE_PREFIX }}-platform-ui:${{ github.sha }} \ | |
| ${{ env.IMAGE_PREFIX }}-platform-ui:linux-amd64 \ | |
| ${{ env.IMAGE_PREFIX }}-platform-ui:linux-arm64 | |
| - name: Create multi-arch manifest — migrate | |
| run: | | |
| docker buildx imagetools create \ | |
| --tag ${{ env.IMAGE_PREFIX }}-migrate:latest \ | |
| --tag ${{ env.IMAGE_PREFIX }}-migrate:${{ github.sha }} \ | |
| ${{ env.IMAGE_PREFIX }}-migrate:linux-amd64 \ | |
| ${{ env.IMAGE_PREFIX }}-migrate:linux-arm64 | |
| - name: Create multi-arch manifest — container-worker | |
| run: | | |
| docker buildx imagetools create \ | |
| --tag ${{ env.IMAGE_PREFIX }}-container-worker:latest \ | |
| --tag ${{ env.IMAGE_PREFIX }}-container-worker:${{ github.sha }} \ | |
| ${{ env.IMAGE_PREFIX }}-container-worker:linux-amd64 \ | |
| ${{ env.IMAGE_PREFIX }}-container-worker:linux-arm64 |