Compare commits
5 commits
6f847977fb
...
ed3ae04b8b
Author | SHA1 | Date | |
---|---|---|---|
ed3ae04b8b | |||
4acb7e0aaf | |||
16ecb5d9f5 | |||
6e25ce5ee8 | |||
46dca17557 |
6 changed files with 73 additions and 44 deletions
68
.github/workflows/release_stable.yml
vendored
68
.github/workflows/release_stable.yml
vendored
|
@ -47,12 +47,6 @@ jobs:
|
||||||
dockerhub_username: ${{ secrets.DOCKER_USERNAME }}
|
dockerhub_username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
dockerhub_token: ${{ secrets.DOCKER_TOKEN }}
|
dockerhub_token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
- name: Check repository branch
|
|
||||||
id: branch
|
|
||||||
uses: GuillaumeFalourd/branch-exists@v1.1
|
|
||||||
with:
|
|
||||||
branch: ${{ steps.dotclear.outputs.tag }}
|
|
||||||
|
|
||||||
- name: notfound
|
- name: notfound
|
||||||
if: (steps.registry.outputs.image_exists == 'false')
|
if: (steps.registry.outputs.image_exists == 'false')
|
||||||
run: |
|
run: |
|
||||||
|
@ -65,36 +59,11 @@ jobs:
|
||||||
SUMMARY=$'Image ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ steps.dotclear.outputs.tag }} found.'
|
SUMMARY=$'Image ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ steps.dotclear.outputs.tag }} found.'
|
||||||
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
do_branch:
|
- name: Check repository branch
|
||||||
needs: check_image
|
id: branch
|
||||||
if: ((needs.check_image.outputs.has_branch == 'false') || (github.event.inputs.force_rebuild == 'true'))
|
uses: GuillaumeFalourd/branch-exists@v1.1
|
||||||
name: Create repository branch
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
steps:
|
|
||||||
- name: Check out the repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Create repository branch
|
|
||||||
id: create
|
|
||||||
uses: peterjgrainger/action-create-branch@v3.0.0
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
branch: ${{ needs.check_image.outputs.version }}
|
branch: ${{ steps.dotclear.outputs.tag }}
|
||||||
|
|
||||||
- name: notfound
|
|
||||||
if: (steps.create.outputs.created == 'false')
|
|
||||||
run: |
|
|
||||||
SUMMARY=$'Branch ${{ needs.check_image.outputs.version }} has not been created.'
|
|
||||||
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
|
||||||
|
|
||||||
- name: found
|
|
||||||
if: (steps.create.outputs.created == 'true')
|
|
||||||
run: |
|
|
||||||
SUMMARY=$' Branch ${{ needs.check_image.outputs.version }} has been created.'
|
|
||||||
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
|
||||||
|
|
||||||
do_image:
|
do_image:
|
||||||
needs: check_image
|
needs: check_image
|
||||||
|
@ -103,13 +72,40 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write
|
||||||
contents: read
|
contents: write
|
||||||
attestations: write
|
attestations: write
|
||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
|
if: ((needs.check_image.outputs.has_branch == 'false') || (github.event.inputs.force_rebuild == 'true'))
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Create repository branch
|
||||||
|
if: ((needs.check_image.outputs.has_branch == 'false') || (github.event.inputs.force_rebuild == 'true'))
|
||||||
|
id: create
|
||||||
|
uses: peterjgrainger/action-create-branch@v3.0.0
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
branch: ${{ needs.check_image.outputs.version }}
|
||||||
|
|
||||||
|
- name: notcreated
|
||||||
|
if: (steps.create.outputs.created != 'true')
|
||||||
|
run: |
|
||||||
|
SUMMARY=$'Branch ${{ needs.check_image.outputs.version }} has not been created.'
|
||||||
|
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
|
- name: created
|
||||||
|
if: (steps.create.outputs.created == 'true')
|
||||||
|
run: |
|
||||||
|
SUMMARY=$' Branch ${{ needs.check_image.outputs.version }} has been created.'
|
||||||
|
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
|
- name: Check out the repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ needs.check_image.outputs.version }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
|
33
.github/workflows/release_testing.yml
vendored
33
.github/workflows/release_testing.yml
vendored
|
@ -20,8 +20,41 @@ jobs:
|
||||||
attestations: write
|
attestations: write
|
||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
|
- name: Get last dotclear repository tag
|
||||||
|
id: dotclear
|
||||||
|
uses: oprypin/find-latest-tag@v1
|
||||||
|
with:
|
||||||
|
repository: dotclear/dotclear
|
||||||
|
|
||||||
|
- name: version
|
||||||
|
run: |
|
||||||
|
SUMMARY=$'Last Dotclear repository tag is ${{ steps.dotclear.outputs.tag }}.'
|
||||||
|
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
|
- name: Create repository branch
|
||||||
|
id: create
|
||||||
|
uses: peterjgrainger/action-create-branch@v3.0.0
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
branch: ${{ steps.dotclear.outputs.tag }}
|
||||||
|
|
||||||
|
- name: notcreated
|
||||||
|
if: (steps.create.outputs.created != 'true')
|
||||||
|
run: |
|
||||||
|
SUMMARY=$'Branch ${{ needs.check_image.outputs.version }} has not been created.'
|
||||||
|
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
|
- name: created
|
||||||
|
if: (steps.create.outputs.created == 'true')
|
||||||
|
run: |
|
||||||
|
SUMMARY=$' Branch ${{ needs.check_image.outputs.version }} has been created.'
|
||||||
|
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ steps.dotclear.outputs.tag }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
|
@ -54,8 +54,8 @@ COPY etc/snippets_common.conf /etc/nginx/snippets/snippets_common.conf
|
||||||
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.12/community/ gnu-libiconv=1.15-r2
|
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.12/community/ gnu-libiconv=1.15-r2
|
||||||
ENV LD_PRELOAD=/usr/lib/preloadable_libiconv.so
|
ENV LD_PRELOAD=/usr/lib/preloadable_libiconv.so
|
||||||
|
|
||||||
# Use PHP 8.3 release
|
# Use PHP 8.4 release
|
||||||
ENV VER_PHP=php83
|
ENV VER_PHP=php84
|
||||||
|
|
||||||
# Install PHP required packages
|
# Install PHP required packages
|
||||||
RUN apk add --no-cache --update \
|
RUN apk add --no-cache --update \
|
||||||
|
|
|
@ -88,11 +88,11 @@ VERSION_INSTALLED=$(sed -n "s/^\s*\"release_version\":\s*\"\(.*\)\",/\1/p" relea
|
||||||
echo >&2 "| Summary: "
|
echo >&2 "| Summary: "
|
||||||
echo >&2 "| Alpine $(cat /etc/alpine-release)"
|
echo >&2 "| Alpine $(cat /etc/alpine-release)"
|
||||||
echo >&2 "| Nginx $(nginx -v 2>&1 | sed 's/nginx version: nginx\///')"
|
echo >&2 "| Nginx $(nginx -v 2>&1 | sed 's/nginx version: nginx\///')"
|
||||||
echo >&2 "| PHP $(php -r "echo PHP_VERSION;")"
|
echo >&2 "| PHP $(php84 -r "echo PHP_VERSION;")"
|
||||||
echo >&2 "| Dotclear ${VERSION_INSTALLED}"
|
echo >&2 "| Dotclear ${VERSION_INSTALLED}"
|
||||||
|
|
||||||
# Start web server
|
# Start web server
|
||||||
php-fpm83 -D # FPM must start first in daemon mode
|
php-fpm84 -D # FPM must start first in daemon mode
|
||||||
nginx # Then nginx in no daemon mode
|
nginx # Then nginx in no daemon mode
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
|
@ -104,9 +104,9 @@ session.referer_check =
|
||||||
session.cache_limiter = nocache
|
session.cache_limiter = nocache
|
||||||
session.cache_expire = 180
|
session.cache_expire = 180
|
||||||
session.use_trans_sid = 0
|
session.use_trans_sid = 0
|
||||||
session.sid_length = 26
|
#session.sid_length = 26
|
||||||
session.trans_sid_tags = "a=href,area=href,frame=src,form="
|
session.trans_sid_tags = "a=href,area=href,frame=src,form="
|
||||||
session.sid_bits_per_character = 5
|
#session.sid_bits_per_character = 5
|
||||||
|
|
||||||
[opcache]
|
[opcache]
|
||||||
opcache.enable=1
|
opcache.enable=1
|
||||||
|
|
|
@ -104,9 +104,9 @@ session.referer_check =
|
||||||
session.cache_limiter = nocache
|
session.cache_limiter = nocache
|
||||||
session.cache_expire = 180
|
session.cache_expire = 180
|
||||||
session.use_trans_sid = 0
|
session.use_trans_sid = 0
|
||||||
session.sid_length = 26
|
#session.sid_length = 26
|
||||||
session.trans_sid_tags = "a=href,area=href,frame=src,form="
|
session.trans_sid_tags = "a=href,area=href,frame=src,form="
|
||||||
session.sid_bits_per_character = 5
|
#session.sid_bits_per_character = 5
|
||||||
|
|
||||||
[opcache]
|
[opcache]
|
||||||
opcache.enable=1
|
opcache.enable=1
|
||||||
|
|
Loading…
Reference in a new issue