beach-php-images-built #1072
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update PHP versions | |
on: | |
repository_dispatch: | |
types: [ beach-php-images-built ] | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: 'main' | |
- name: Determine latest built Beach PHP 8.1 version | |
id: latest_php_81_version | |
uses: flownative/action-docker-get-label@master | |
with: | |
image: europe-docker.pkg.dev/flownative/docker/beach-php:8.1 | |
label: org.opencontainers.image.version | |
registry_endpoint: https://europe-docker.pkg.dev | |
registry_username: '_json_key' | |
registry_password: ${{ secrets.GOOGLE_ARTIFACTS_PASSWORD_DOCKER }} | |
- name: Determine latest built Beach PHP 8.2 version | |
id: latest_php_82_version | |
uses: flownative/action-docker-get-label@master | |
with: | |
image: europe-docker.pkg.dev/flownative/docker/beach-php:8.2 | |
label: org.opencontainers.image.version | |
registry_endpoint: https://europe-docker.pkg.dev | |
registry_username: '_json_key' | |
registry_password: ${{ secrets.GOOGLE_ARTIFACTS_PASSWORD_DOCKER }} | |
- name: Determine latest built Beach PHP 8.3 version | |
id: latest_php_83_version | |
uses: flownative/action-docker-get-label@master | |
with: | |
image: europe-docker.pkg.dev/flownative/docker/beach-php:8.3 | |
label: org.opencontainers.image.version | |
registry_endpoint: https://europe-docker.pkg.dev | |
registry_username: '_json_key' | |
registry_password: ${{ secrets.GOOGLE_ARTIFACTS_PASSWORD_DOCKER }} | |
- name: Update version files | |
run: | | |
echo "${{ steps.latest_php_81_version.outputs.value }}" > projects/beach/channels/stable/versions/beach-php-8_1.txt | |
echo "${{ steps.latest_php_82_version.outputs.value }}" > projects/beach/channels/stable/versions/beach-php-8_2.txt | |
echo "${{ steps.latest_php_83_version.outputs.value }}" > projects/beach/channels/stable/versions/beach-php-8_3.txt | |
echo "${{ steps.latest_php_81_version.outputs.value }}" > projects/beach/channels/beta/versions/beach-php-8_1.txt | |
echo "${{ steps.latest_php_82_version.outputs.value }}" > projects/beach/channels/beta/versions/beach-php-8_2.txt | |
echo "${{ steps.latest_php_83_version.outputs.value }}" > projects/beach/channels/beta/versions/beach-php-8_3.txt | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: Update PHP versions | |
signoff: false | |
branch: version-updates | |
delete-branch: true | |
title: 'Update PHP versions' | |
body: | | |
This updates PHP to the following versions: | |
- ${{ steps.latest_php_81_version.outputs.value }} | |
- ${{ steps.latest_php_82_version.outputs.value }} | |
- ${{ steps.latest_php_83_version.outputs.value }} | |
labels: | | |
automated pr | |
reviewers: | | |
kdambekalns | |
robertlemke | |
kitsunet |