Bump docker/setup-buildx-action from 2 to 3 #140
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
name: Docker Commit | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
fpm_push: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
name: Tag Commit (PHP-FPM) | |
steps: | |
- uses: actions/checkout@v3 | |
- 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/[email protected] | |
name: Cache Composer dependencies | |
with: | |
path: ~/.composer/cache/files | |
key: composer-${{ hashFiles('composer.json') }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Quay | |
uses: docker/login-action@v2 | |
with: | |
registry: quay.io | |
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} | |
password: ${{ secrets.DOCKER_REGISTRY_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@v3 | |
with: | |
push: true | |
context: . | |
tags: quay.io/renokico/laravel-helm-demo:${{ github.sha }} | |
file: Dockerfile.fpm | |
octane_push: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
name: Tag Commit (Octane) | |
steps: | |
- uses: actions/checkout@v3 | |
- 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/[email protected] | |
name: Cache Composer dependencies | |
with: | |
path: ~/.composer/cache/files | |
key: composer-${{ hashFiles('composer.json') }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Quay | |
uses: docker/login-action@v2 | |
with: | |
registry: quay.io | |
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} | |
password: ${{ secrets.DOCKER_REGISTRY_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@v3 | |
with: | |
push: true | |
context: . | |
tags: quay.io/renokico/laravel-helm-demo:octane-${{ github.sha }} | |
file: Dockerfile.octane | |
worker_push: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
name: Tag Commit (Worker) | |
steps: | |
- uses: actions/checkout@v3 | |
- 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/[email protected] | |
name: Cache Composer dependencies | |
with: | |
path: ~/.composer/cache/files | |
key: composer-${{ hashFiles('composer.json') }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Quay | |
uses: docker/login-action@v2 | |
with: | |
registry: quay.io | |
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} | |
password: ${{ secrets.DOCKER_REGISTRY_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@v3 | |
with: | |
push: true | |
context: . | |
tags: quay.io/renokico/laravel-helm-demo:worker-${{ github.sha }} | |
file: Dockerfile.worker |