Skip to content

Commit 2d95054

Browse files
feat: initial commit
1 parent f35a497 commit 2d95054

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and Push Docker Image
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up QEMU
17+
uses: docker/setup-qemu-action@v2
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v2
21+
22+
- name: Log in to GitHub Container Registry
23+
uses: docker/login-action@v2
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.repository_owner }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Build and push Docker image
30+
uses: docker/build-push-action@v5
31+
with:
32+
context: .
33+
push: true
34+
platforms: linux/amd64,linux/arm64
35+
tags: |
36+
ghcr.io/ronasit/php-nginx-dev-wkhtmltopdf:latest
37+
ghcr.io/ronasit/php-nginx-dev-wkhtmltopdf:${{ github.sha }}
38+
ghcr.io/ronasit/php-nginx-dev-wkhtmltopdf:${{ github.ref_name }}

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM webdevops/php-nginx-dev:8.1-alpine
2+
USER root
3+
4+
# Install necessary build tools and headers
5+
RUN apk add --no-cache autoconf g++ make linux-headers
6+
7+
RUN pecl uninstall xdebug \
8+
&& rm -rf /usr/local/lib/php/extensions/no-debug-non-zts-*/xdebug.so \
9+
&& rm -rf /usr/local/lib/php/extensions/no-debug-non-zts-*/xdebug.so.debug
10+
11+
RUN pecl install xdebug-3.2.2 \
12+
&& docker-php-ext-enable xdebug

0 commit comments

Comments
 (0)