chore: update dependencies #90
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: Docker Cache Warmup | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "docker/Dockerfile" | |
| - "services/api/composer.json" | |
| - "services/api/composer.lock" | |
| - "services/client/package.json" | |
| - "services/client/yarn.lock" | |
| concurrency: | |
| group: docker-cache-warmup | |
| cancel-in-progress: true | |
| env: | |
| image: docker.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ vars.APP_NAME }} | |
| jobs: | |
| warmup-cache: | |
| name: Warmup Docker Cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to DockerHub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} | |
| - name: Build Docker image for cache warmup | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: docker/Dockerfile | |
| target: prod | |
| push: false | |
| platforms: linux/amd64,linux/arm64 | |
| cache-from: type=gha,scope=monolithic-multi-arch-build | |
| cache-to: type=gha,scope=monolithic-multi-arch-build,mode=max | |
| - name: Build test image for cache warmup | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: docker/Dockerfile | |
| target: test | |
| push: false | |
| platforms: linux/amd64,linux/arm64 | |
| cache-from: type=gha,scope=monolithic-test-build | |
| cache-to: type=gha,scope=monolithic-test-build,mode=max |