Skip to content

Build Typecho Docker Image #749

Build Typecho Docker Image

Build Typecho Docker Image #749

Workflow file for this run

name: Build Typecho Docker Image
on:
workflow_dispatch:
inputs:
version:
description: 'Typecho version'
required: true
jobs:
build_73_php_debian:
concurrency: build_debian_73
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.3 -o debian php
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_73_cli_debian:
concurrency: build_debian_73
runs-on: ubuntu-latest
needs:
- build_73_php_debian
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.3 -o debian cli
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_73_fpm_debian:
concurrency: build_debian_73
runs-on: ubuntu-latest
needs:
- build_73_cli_debian
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.3 -o debian fpm
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_73_apache_debian:
concurrency: build_debian_73
runs-on: ubuntu-latest
needs:
- build_73_fpm_debian
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.3 -o debian apache
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_74_php_debian:
concurrency: build_debian_74
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.4 -o debian php
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_74_cli_debian:
concurrency: build_debian_74
runs-on: ubuntu-latest
needs:
- build_74_php_debian
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.4 -o debian cli
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_74_fpm_debian:
concurrency: build_debian_74
runs-on: ubuntu-latest
needs:
- build_74_cli_debian
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.4 -o debian fpm
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_74_apache_debian:
concurrency: build_debian_74
runs-on: ubuntu-latest
needs:
- build_74_fpm_debian
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.4 -o debian apache
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_80_php_debian:
concurrency: build_debian_80
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 8.0 -o debian php
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_80_cli_debian:
concurrency: build_debian_80
runs-on: ubuntu-latest
needs:
- build_80_php_debian
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 8.0 -o debian cli
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_80_fpm_debian:
concurrency: build_debian_80
runs-on: ubuntu-latest
needs:
- build_80_cli_debian
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 8.0 -o debian fpm
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_80_apache_debian:
concurrency: build_debian_80
runs-on: ubuntu-latest
needs:
- build_80_fpm_debian
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 8.0 -o debian apache
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_73_php_alpine:
concurrency: build_alpine_73
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.3 -o alpine php
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_73_cli_alpine:
concurrency: build_alpine_73
runs-on: ubuntu-latest
needs:
- build_73_php_alpine
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.3 -o alpine cli
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_73_fpm_alpine:
concurrency: build_alpine_73
runs-on: ubuntu-latest
needs:
- build_73_cli_alpine
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.3 -o alpine fpm
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_74_php_alpine:
concurrency: build_alpine_74
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.4 -o alpine php
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_74_cli_alpine:
concurrency: build_alpine_74
runs-on: ubuntu-latest
needs:
- build_74_php_alpine
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.4 -o alpine cli
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_74_fpm_alpine:
concurrency: build_alpine_74
runs-on: ubuntu-latest
needs:
- build_74_cli_alpine
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 7.4 -o alpine fpm
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_80_php_alpine:
concurrency: build_alpine_80
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 8.0 -o alpine php
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_80_cli_alpine:
concurrency: build_alpine_80
runs-on: ubuntu-latest
needs:
- build_80_php_alpine
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 8.0 -o alpine cli
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}
build_80_fpm_alpine:
concurrency: build_alpine_80
runs-on: ubuntu-latest
needs:
- build_80_cli_alpine
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Dockerfile
id: generate
run: |
./build.sh -g -v ${{ github.event.inputs.version }} -p 8.0 -o alpine fpm
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ steps.generate.outputs.PLATFORM }}
push: true
tags: ${{ steps.generate.outputs.VERSION }}
build-args: |
TAG=${{ steps.generate.outputs.TAG }}
URL=${{ steps.generate.outputs.URL }}
CONFIG=${{ steps.generate.outputs.CONFIG }}
PHP_EXTENSION=${{ steps.generate.outputs.PHP_EXTENSION }}
PHP8_SOCKETS_WORKAROUND=${{ steps.generate.outputs.PHP8_SOCKETS_WORKAROUND }}