Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Default to 8.3 #10

Merged
merged 1 commit into from
Nov 28, 2023
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
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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)"

Expand Down