diff --git a/.github/workflows/docker-commit.yml b/.github/workflows/docker-commit.yml index 5a36b4c..292e695 100644 --- a/.github/workflows/docker-commit.yml +++ b/.github/workflows/docker-commit.yml @@ -19,6 +19,19 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.0 + extensions: dom, curl, intl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite + coverage: pcov + + - uses: actions/cache@v2.1.4 + name: Cache Composer dependencies + with: + path: ~/.composer/cache/files + key: composer-${{ hashFiles('composer.json') }} + - name: Set up QEMU uses: docker/setup-qemu-action@v1 @@ -31,6 +44,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Install dependencies + run: | + composer install --no-interaction --no-progress --prefer-dist --optimize-autoloader --no-dev + - name: Build and push id: docker uses: docker/build-push-action@v2 @@ -50,6 +67,19 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.0 + extensions: dom, curl, intl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite + coverage: pcov + + - uses: actions/cache@v2.1.4 + name: Cache Composer dependencies + with: + path: ~/.composer/cache/files + key: composer-${{ hashFiles('composer.json') }} + - name: Set up QEMU uses: docker/setup-qemu-action@v1 @@ -62,6 +92,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Install dependencies + run: | + composer install --no-interaction --no-progress --prefer-dist --optimize-autoloader --no-dev + - name: Build and push id: docker uses: docker/build-push-action@v2 @@ -81,6 +115,19 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.0 + extensions: dom, curl, intl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite + coverage: pcov + + - uses: actions/cache@v2.1.4 + name: Cache Composer dependencies + with: + path: ~/.composer/cache/files + key: composer-${{ hashFiles('composer.json') }} + - name: Set up QEMU uses: docker/setup-qemu-action@v1 @@ -93,6 +140,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Install dependencies + run: | + composer install --no-interaction --no-progress --prefer-dist --optimize-autoloader --no-dev + - name: Build and push id: docker uses: docker/build-push-action@v2 diff --git a/.github/workflows/docker-latest-tag.yaml b/.github/workflows/docker-latest-tag.yaml index cdfd022..5011ce0 100644 --- a/.github/workflows/docker-latest-tag.yaml +++ b/.github/workflows/docker-latest-tag.yaml @@ -16,6 +16,19 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.0 + extensions: dom, curl, intl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite + coverage: pcov + + - uses: actions/cache@v2.1.4 + name: Cache Composer dependencies + with: + path: ~/.composer/cache/files + key: composer-${{ hashFiles('composer.json') }} + - name: Set up QEMU uses: docker/setup-qemu-action@v1 @@ -28,6 +41,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Install dependencies + run: | + composer install --no-interaction --no-progress --prefer-dist --optimize-autoloader --no-dev + - name: Build and push id: docker uses: docker/build-push-action@v2 @@ -35,7 +52,6 @@ jobs: push: true context: . tags: renokico/laravel-helm-demo:latest - labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.fpm push_octane: @@ -48,6 +64,19 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.0 + extensions: dom, curl, intl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite + coverage: pcov + + - uses: actions/cache@v2.1.4 + name: Cache Composer dependencies + with: + path: ~/.composer/cache/files + key: composer-${{ hashFiles('composer.json') }} + - name: Set up QEMU uses: docker/setup-qemu-action@v1 @@ -60,6 +89,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Install dependencies + run: | + composer install --no-interaction --no-progress --prefer-dist --optimize-autoloader --no-dev + - name: Build and push id: docker uses: docker/build-push-action@v2 @@ -67,7 +100,6 @@ jobs: push: true context: . tags: renokico/laravel-helm-demo:octane-latest - labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.octane push_worker: @@ -80,6 +112,19 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.0 + extensions: dom, curl, intl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite + coverage: pcov + + - uses: actions/cache@v2.1.4 + name: Cache Composer dependencies + with: + path: ~/.composer/cache/files + key: composer-${{ hashFiles('composer.json') }} + - name: Set up QEMU uses: docker/setup-qemu-action@v1 @@ -92,6 +137,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Install dependencies + run: | + composer install --no-interaction --no-progress --prefer-dist --optimize-autoloader --no-dev + - name: Build and push id: docker uses: docker/build-push-action@v2 @@ -99,5 +148,4 @@ jobs: push: true context: . tags: renokico/laravel-helm-demo:worker-latest - labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.worker