-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (79 loc) · 3.77 KB
/
docker.build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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@v1
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@v1
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@v1
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: Determine latest built Beach PHP 8.4 version
id: latest_php_84_version
uses: flownative/action-docker-get-label@v1
with:
image: europe-docker.pkg.dev/flownative/docker/beach-php:8.4
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_84_version.outputs.value }}" > projects/beach/channels/stable/versions/beach-php-8_4.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
echo "${{ steps.latest_php_84_version.outputs.value }}" > projects/beach/channels/beta/versions/beach-php-8_4.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 }}
- ${{ steps.latest_php_84_version.outputs.value }}
labels: |
automated pr
reviewers: |
kdambekalns
robertlemke
kitsunet