Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 18 additions & 0 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "test"
on:
pull_request:
paths: [ "**", "!**.md" ]
jobs:
test:
runs-on: "ubuntu-24.04"
steps:
- name: "Login to GitHub Container Registry"
uses: "docker/login-action@v2"
with:
registry: "ghcr.io"
username: "${{github.actor}}"
password: "${{secrets.GITHUB_TOKEN}}"
- name: "Clone Git repository"
uses: "actions/checkout@v3"
- name: "Build Docker image"
run: "docker build ."
27 changes: 18 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@ name: "release"
on:
push:
branches: [ "main" ]
paths: [ "**", "!**.md" ]
env:
PACKAGE_NAME: "ghcr.io/at-cloud-pro/caddy-php"
PACKAGE_VERSION: "4.0.0"
PACKAGE_VERSION: "5.0.0"
jobs:
release:
runs-on: "ubuntu-22.04"
runs-on: "ubuntu-24.04"
steps:
- { name: "Login to GitHub Container Registry", uses: "docker/login-action@v2", with: { registry: "ghcr.io", username: "oskarbarcz", password: "${{secrets.GITHUB_TOKEN}}" } }
- { name: "Set Git user", run: "git config --global user.name Github Actions && git config --global user.email github-actions@github.com" }
- { name: "Clone Git repository", uses: "actions/checkout@v3" }
- { name: "Build Docker image with new tag", run: "docker build -t ${{ env.PACKAGE_NAME}}:${{ env.PACKAGE_VERSION }} ." }
- { name: "Publish Docker image", run: "docker push ${{ env.PACKAGE_NAME}}:${{ env.PACKAGE_VERSION }}" }
- { name: "Publish tags", run: "git tag ${{ env.PACKAGE_VERSION }} && git push && git push --tags" }
- name: "Login to GitHub Container Registry"
uses: "docker/login-action@v2"
with:
registry: "ghcr.io"
username: "${{github.actor}}"
password: "${{secrets.GITHUB_TOKEN}}"
- name: "Set Git user"
run: "git config --global user.name Github Actions && git config --global user.email github-actions@github.com"
- name: "Clone Git repository"
uses: "actions/checkout@v3"
- name: "Build Docker image with new tag"
run: "docker build -t ${{ env.PACKAGE_NAME}}:${{ env.PACKAGE_VERSION }} ."
- name: "Publish Docker image"
run: "docker push ${{ env.PACKAGE_NAME}}:${{ env.PACKAGE_VERSION }}"
- name: "Publish tags"
run: "git tag ${{ env.PACKAGE_VERSION }} && git push && git push --tags"
11 changes: 0 additions & 11 deletions .github/workflows/test.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.3-fpm-alpine3.19 AS rte
FROM php:8.4-fpm-alpine3.23 AS rte

# Install Caddy
RUN apk add --no-cache \
Expand Down