From 9213436157c61ca25d8450ecad4a988f20a2dc19 Mon Sep 17 00:00:00 2001 From: ToshY <31921460+ToshY@users.noreply.github.com> Date: Sat, 25 Nov 2023 16:10:34 +0100 Subject: [PATCH] change default to 8.3 --- .github/workflows/release.yml | 13 ++++++++++--- Dockerfile | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e3adde..2547653 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,19 +4,21 @@ on: schedule: - cron: '15 2 1,15 * *' - cron: '30 2 1,15 * *' + - cron: '45 2 1,15 * *' workflow_dispatch: inputs: version: description: 'PHP version' required: true - default: 8.2 + default: 8.3 type: choice options: - '8.1' - '8.2' + - '8.3' env: - DEFAULT_VERSION: 8.2 + DEFAULT_VERSION: 8.3 jobs: release: @@ -38,8 +40,13 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Change PHP version to 8.2 + if: github.event.schedule == '30 2 1,15 * *' + run: | + echo "DEFAULT_VERSION=8.2" >> $GITHUB_ENV + - name: Change PHP version to 8.1 - if: github.event.schedule == '15 2 1,15 * *' + if: github.event.schedule == '45 2 1,15 * *' run: | echo "DEFAULT_VERSION=8.1" >> $GITHUB_ENV diff --git a/Dockerfile b/Dockerfile index 7619b15..a84c5d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ARG PHP_VERSION -FROM php:${PHP_VERSION:-"8.2"}-fpm-bookworm AS phpfpm-base +FROM php:${PHP_VERSION:-"8.3"}-fpm-bookworm AS phpfpm-base LABEL maintainer="ToshY (github.com/ToshY)"