Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Updated platforms & testing #27

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f27f1e9
Updated platforms for testing
rennokki Nov 18, 2022
f39040f
Removed 8.2 officials
rennokki Nov 18, 2022
2bf92f9
Removed 7.4 entirely
rennokki Nov 18, 2022
388bc6a
Updated missing flows
rennokki Nov 18, 2022
b0aa71f
Removed node/npm, image/gd, mysql_pdo and redis;
rennokki Nov 18, 2022
4babbb5
Updated readme & docs
rennokki Nov 18, 2022
1010f0b
Added first octane example
rennokki Nov 18, 2022
3d2f368
Added set -ex
rennokki Nov 19, 2022
0a44a6b
Updated permissions
rennokki Nov 19, 2022
bf29394
Updated cleanup images
rennokki Nov 19, 2022
6f4d4d9
Added quiet for deps
rennokki Nov 19, 2022
06884a3
Removed set -e
rennokki Nov 19, 2022
024dfb3
Waiting for 8.2 to release on Docker
rennokki Nov 19, 2022
dc27afa
Let PHP source stay
rennokki Nov 19, 2022
ad048da
Updated project
rennokki Nov 19, 2022
648ce34
Updated shebang
rennokki Nov 20, 2022
668badd
Removed www-data user
rennokki Nov 20, 2022
e874400
Added redis as extension
rennokki Nov 20, 2022
75213fa
Fixed octane permissions
rennokki Nov 26, 2022
ed8768e
Added openswoole
rennokki Nov 28, 2022
44e4d8e
Added mixes for swoole and openswoole
rennokki Nov 29, 2022
5f7615c
Typo
rennokki Nov 29, 2022
3b80ad6
Image name typos
rennokki Nov 29, 2022
6a3db67
Updated images for slimmer versions
rennokki Nov 29, 2022
4deb770
Updated swoole args & composer installation
rennokki Nov 29, 2022
177ccda
Removed php call in final iamge
rennokki Nov 29, 2022
44a4471
Fixed extensions
rennokki Nov 29, 2022
a9b78cc
Fixed platform use
rennokki Nov 29, 2022
8a54b38
Fixed typo
rennokki Nov 30, 2022
67d679e
Using $BUILDPLATFORM for building
rennokki Dec 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git/**/*
.github/**/*
examples/**/*
145 changes: 131 additions & 14 deletions .github/workflows/docker-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- "*"

jobs:
fpm_push:
push_fpm:
if: "!contains(github.event.head_commit.message, 'skip ci')"

runs-on: ubuntu-latest
Expand All @@ -20,16 +20,26 @@ jobs:
fail-fast: false
matrix:
base-tag:
- 7.4-fpm-alpine
- 8.0-fpm-alpine
- 8.1-fpm-alpine
- 8.0-fpm-alpine

steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Docker meta
id: docker_meta
uses: docker/[email protected]
with:
images: quay.io/renokico/laravel-base
tags: |
type=ref,event=pr,suffix=-${{ matrix.base-tag }}
type=raw,value=${{ github.sha }}-${{ matrix.base-tag }}
labels: |
quay.expires-after=7d

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -46,12 +56,21 @@ jobs:
with:
push: true
context: .
tags: quay.io/renokico/laravel-base:${{ github.sha }}-${{ matrix.base-tag }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
file: Dockerfile.fpm
build-args: |
BASE_TAG=${{ matrix.base-tag }}
cache-from: |
type=gha,scope=php-fpm
cache-to: |
type=gha,scope=php-fpm
platforms: |
linux/amd64
linux/arm64
linux/arm/v7

octane_push:
push_octane:
if: "!contains(github.event.head_commit.message, 'skip ci')"

runs-on: ubuntu-latest
Expand All @@ -62,19 +81,28 @@ jobs:
fail-fast: false
matrix:
base-tag:
- 4.8-php8.0-alpine
- 4.7-php8.0-alpine
- 4.6-php8.0-alpine
- 5.0-php8.1-alpine
- 5.0-php8.0-alpine
- 4.8-php8.1-alpine
# - 4.7-php8.1-alpine
# - 4.6-php8.1-alpine
- 4.8-php8.0-alpine

steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Docker meta
id: docker_meta
uses: docker/[email protected]
with:
images: quay.io/renokico/laravel-base
tags: |
type=ref,event=pr,suffix=-octane-${{ matrix.base-tag }}
type=raw,value=octane-${{ github.sha }}-${{ matrix.base-tag }}
labels: |
quay.expires-after=7d

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -91,12 +119,82 @@ jobs:
with:
push: true
context: .
tags: quay.io/renokico/laravel-base:octane-${{ github.sha }}-${{ matrix.base-tag }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
file: Dockerfile.octane
build-args: |
BASE_TAG=${{ matrix.base-tag }}
cache-from: |
type=gha,scope=octane
cache-to: |
type=gha,scope=octane
platforms: |
linux/amd64
linux/arm64
linux/arm/v7

worker_push:
push_openswoole:
if: "!contains(github.event.head_commit.message, 'skip ci')"

runs-on: ubuntu-latest

name: Tag Commit (Openswoole for Octane, ${{ matrix.base-tag }})

strategy:
fail-fast: false
matrix:
base-tag:
- 4.11-php8.1-alpine
- 4.11-php8.0-alpine

steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Docker meta
id: docker_meta
uses: docker/[email protected]
with:
images: quay.io/renokico/laravel-base
tags: |
type=ref,event=pr,suffix=-openswoole-${{ matrix.base-tag }}
type=raw,value=openswoole-${{ github.sha }}-${{ matrix.base-tag }}
labels: |
quay.expires-after=7d

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Quay
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.DOCKER_REPOSITORY_USERNAME }}
password: ${{ secrets.DOCKER_REPOSITORY_TOKEN }}

- name: Build and push
id: docker
uses: docker/build-push-action@v3
with:
push: true
context: .
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
file: Dockerfile.openswoole
build-args: |
BASE_TAG=${{ matrix.base-tag }}
cache-from: |
type=gha,scope=openswoole
cache-to: |
type=gha,scope=openswoole
platforms: |
linux/amd64
linux/arm64
linux/arm/v7

push_worker:
if: "!contains(github.event.head_commit.message, 'skip ci')"

runs-on: ubuntu-latest
Expand All @@ -109,14 +207,24 @@ jobs:
base-tag:
- 8.1-cli-alpine
- 8.0-cli-alpine
- 7.4-cli-alpine

steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Docker meta
id: docker_meta
uses: docker/[email protected]
with:
images: quay.io/renokico/laravel-base
tags: |
type=ref,event=pr,suffix=-worker-${{ matrix.base-tag }}
type=raw,value=worker-${{ github.sha }}-${{ matrix.base-tag }}
labels: |
quay.expires-after=7d

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -133,7 +241,16 @@ jobs:
with:
push: true
context: .
tags: quay.io/renokico/laravel-base:worker-${{ github.sha }}-${{ matrix.base-tag }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
file: Dockerfile.worker
build-args: |
BASE_TAG=${{ matrix.base-tag }}
cache-from: |
type=gha,scope=worker
cache-to: |
type=gha,scope=worker
platforms: |
linux/amd64
linux/arm64
linux/arm/v7
Loading