update php version

This commit is contained in:
A.Gudko
2024-08-29 22:16:57 +03:00
parent af9260a35c
commit 431cd5ca43
4 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
ARG PHP_VERSION=8.3.10-1
ARG PHP_VERSION=8.3
FROM rosven9856/php:$PHP_VERSION

View File

@@ -27,7 +27,7 @@ This action will update the package version in the Gitea system using the API an
build
```shell
docker build . --build-arg=PHP_VERSION=8.3.10-1 -t=gitea-package-action
docker build . --build-arg=PHP_VERSION=8.3 -t=gitea-package-action
```
initialization

View File

@@ -40,7 +40,7 @@ function sendRequest ($method = 'GET', $endpoint = '', $data = []): array {
$endpoint .= '?access_token=' . \getenv('gitea_access_token');
}
\curl_setopt($curl, CURLOPT_URL, \getenv('gitea_instance_base_url') . $endpoint /* . '?access_token=' . \getenv('gitea_access_token')*/);
\curl_setopt($curl, CURLOPT_URL, app . php\getenv('gitea_instance_base_url') . $endpoint /* . '?access_token=' . \getenv('gitea_access_token')*/);
\curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
\curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true);
\curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

0
src/.gitkeep Normal file
View File