4 Commits

Author SHA1 Message Date
Gitea Actions
5643e77f0f Update manifest version to 6.1.0 [▶️] 2025-12-10 00:18:53 +00:00
1e95a3cf07 phar
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 22m31s
2025-12-09 21:18:18 -03:00
Gitea Actions
e6779edec7 Update AWS SDK PHAR [▶️] 2025-12-10 00:08:02 +00:00
1f18de7750 phar
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 9s
2025-12-09 21:06:35 -03:00
6 changed files with 50 additions and 4 deletions

View File

@@ -0,0 +1,45 @@
name: Update AWS SDK PHAR
on:
workflow_dispatch:
schedule:
- cron: '34 3 * * *' # 03:34 UTC == 00:34 BRT
permissions:
contents: write
jobs:
download-aws-sdk:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
permissions:
contents: write
actions: write # needed to dispatch another workflow
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download AWS SDK PHAR
run: |
mkdir -p vendor
wget https://github.com/aws/aws-sdk-php/releases/latest/download/aws.phar -O vendor/aws.phar
- name: Commit and push changes
id: commit_step
run: |
git config --global --add safe.directory '*'
git config user.name "Gitea Actions"
git config user.email "actions@git.icc.gg"
git add vendor/aws.phar
# If there are changes, commit & push; set output flag accordingly
if git diff --quiet && git diff --staged --quiet; then
echo "No changes to commit"
echo "changes_committed=false" >> $GITHUB_OUTPUT
else
git commit -m "Update AWS SDK PHAR [▶️]"
git push origin HEAD:main
echo "changes_committed=true" >> $GITHUB_OUTPUT
fi

View File

@@ -16,6 +16,8 @@ RUN apk add --no-cache --update nginx \
# Copy dependencies from vendor stage # Copy dependencies from vendor stage
COPY --from=vendor /app/vendor /var/www/html/vendor COPY --from=vendor /app/vendor /var/www/html/vendor
# Copy aws.phar
COPY vendor/aws.phar /var/www/html/vendor/aws.phar
# Copy application code # Copy application code
COPY . /var/www/html/ COPY . /var/www/html/

View File

@@ -4,7 +4,6 @@
"type": "project", "type": "project",
"require": { "require": {
"php": "^8.2", "php": "^8.2",
"aws/aws-sdk-php": "^3.300",
"ext-pdo": "*", "ext-pdo": "*",
"ext-curl": "*", "ext-curl": "*",
"ext-json": "*" "ext-json": "*"
@@ -15,4 +14,4 @@
"s3_client.php" "s3_client.php"
] ]
} }
} }

View File

@@ -1,7 +1,7 @@
<?php <?php
// --- MariaDB Settings --- // --- MariaDB Settings ---
require_once __DIR__ . '/vendor/autoload.php'; require_once __DIR__ . '/vendor/aws.phar';
define('DB_HOST', getenv('DB_SERVER') ?: '127.0.0.1'); define('DB_HOST', getenv('DB_SERVER') ?: '127.0.0.1');
define('DB_NAME', getenv('DB_NAME') ?: 'YOURDBNAME'); define('DB_NAME', getenv('DB_NAME') ?: 'YOURDBNAME');

View File

@@ -1,4 +1,4 @@
{ {
"version": "6.0.0", "version": "6.1.0",
"author": "Ivan Carlos" "author": "Ivan Carlos"
} }

BIN
vendor/aws.phar vendored Normal file

Binary file not shown.