Skip to content

Commit

Permalink
Remove Circle CI and add 81 and 82 with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Dec 27, 2023
1 parent c1d68f7 commit 8d7ea60
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/8.1.apache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build Docker Images for PHP 8.1 with Apache
on:
workflow_dispatch:
branches:
- master
paths:
- "8/8.1/Dockerfile.apache"
- "8/8.1/Dockerfile.apache.dev"
push:
branches:
- "master"
paths:
- "8/8.1/Dockerfile.apache"
- "8/8.1/Dockerfile.apache.dev"
jobs:
docker-build-and-push:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
## Login to all 3 registries: DockerHub, GitHub Actions Container Registry, and Quay.io ##
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to the GitHub Actions Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to the Quay.io Container Registry
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Checkout code
uses: actions/checkout@v2
## Build and push the Docker image ##
- name: Build and push the Apache Production Image
uses: docker/build-push-action@v5
with:
context: 8/8.1
file: 8/8.1/Dockerfile.apache
build-args: |
PHP_VERSION=8.1
push: true
tags: |
islamicnetwork/php:8.1-apache
ghcr.io/islamic-network/php:8.1-apache
quay.io/islamic-network/php:8.1-apache
- name: Build and push the Apache Development Image
uses: docker/build-push-action@v5
with:
context: 8/8.1
file: 8/8.1/Dockerfile.apache.dev
build-args: |
PHP_VERSION=8.1
push: true
tags: |
islamicnetwork/php:8.1-apache-dev
ghcr.io/islamic-network/php:8.1-apache-dev
quay.io/islamic-network/php:8.1-apache-dev
53 changes: 53 additions & 0 deletions .github/workflows/8.1.cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build Docker Images for PHP 8.1 (CLI)
on:
workflow_dispatch:
branches:
- master
paths:
- "8/8.1/Dockerfile.cli"
push:
branches:
- "master"
paths:
- "8/8.1/Dockerfile.cli"
jobs:
docker-build-and-push:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
## Login to all 3 registries: DockerHub, GitHub Actions Container Registry, and Quay.io ##
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to the GitHub Actions Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to the Quay.io Container Registry
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Checkout code
uses: actions/checkout@v2
## Build and push the Docker image ##
- name: Build and push the CLI Image
uses: docker/build-push-action@v5
with:
context: 8/8.1
file: 8/8.1/Dockerfile.cli
build-args: |
PHP_VERSION=8.1
push: true
tags: |
islamicnetwork/php:8.1-cli
ghcr.io/islamic-network/php:8.1-cli
quay.io/islamic-network/php:8.1-cli
67 changes: 67 additions & 0 deletions .github/workflows/8.1.unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build Docker Images for PHP 8.1 with Nginx Unit
on:
workflow_dispatch:
branches:
- master
paths:
- "8/8.1/Dockerfile.nunit"
- "8/8.1/Dockerfile.nunit.dev"
push:
branches:
- "master"
paths:
- "8/8.1/Dockerfile.nunit"
- "8/8.1/Dockerfile.nunit.dev"
jobs:
docker-build-and-push:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
## Login to all 3 registries: DockerHub, GitHub Actions Container Registry, and Quay.io ##
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to the GitHub Actions Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to the Quay.io Container Registry
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Checkout code
uses: actions/checkout@v2
## Build and push the Docker image ##
- name: Build and push the Unit Production Image
uses: docker/build-push-action@v5
with:
context: 8/8.1
file: 8/8.1/Dockerfile.nunit
build-args: |
PHP_VERSION=8.1
push: true
tags: |
islamicnetwork/php:8.1-unit
ghcr.io/islamic-network/php:8.1-unit
quay.io/islamic-network/php:8.1-unit
- name: Build and push the Unit Development Image
uses: docker/build-push-action@v5
with:
context: 8/8.1
file: 8/8.1/Dockerfile.nunit.dev
build-args: |
PHP_VERSION=8.1
push: true
tags: |
islamicnetwork/php:8.1-unit-dev
ghcr.io/islamic-network/php:8.1-unit-dev
quay.io/islamic-network/php:8.1-unit-dev

0 comments on commit 8d7ea60

Please sign in to comment.