Change memory limit #30
This file contains 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
on: [ push ] | |
name: Build | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
runtime: [ "8.3-octane-minimal", "8.3-fpm-minimal" ] | |
shouldRelease: | |
- ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') }} | |
# exclude 8.0 and 8.1 from unstable builds | |
exclude: | |
- runtime: "8.0-octane-minimal" | |
shouldRelease: false | |
- runtime: "8.1-octane-minimal" | |
shouldRelease: false | |
- runtime: "8.1-fpm-minimal" | |
shouldRelease: false | |
name: "own3d/laravel-docker:${{ matrix.runtime }}" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to Container Registry | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push own3d/laravel-docker:${{ matrix.runtime }}-unstable | |
# we want to build and push the -unstable tag on any branch except master and develop | |
if: github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop' | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: ./dockerfiles/${{ matrix.runtime }}/Dockerfile | |
platforms: | | |
linux/amd64 | |
linux/arm64/v8 | |
push: true | |
tags: | | |
own3d/laravel-docker:${{ matrix.runtime }}-unstable | |
- name: Build and push own3d/laravel-docker:${{ matrix.runtime }} | |
# we only want to build and push the main tag on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: ./dockerfiles/${{ matrix.runtime }}/Dockerfile | |
platforms: | | |
linux/amd64 | |
linux/arm64/v8 | |
push: true | |
tags: | | |
own3d/laravel-docker:${{ matrix.runtime }} | |
- name: Build and push own3d/laravel-docker:${{ matrix.runtime }}-develop | |
# we only want to build and push the -develop tag on develop | |
if: github.ref == 'refs/heads/develop' | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: ./dockerfiles/${{ matrix.runtime }}/Dockerfile | |
platforms: | | |
linux/amd64 | |
linux/arm64/v8 | |
push: true | |
tags: | | |
own3d/laravel-docker:${{ matrix.runtime }}-develop |