From 34fc95a78c2de87812b2c3c3f457623b5f50df9e Mon Sep 17 00:00:00 2001 From: Jens True Date: Fri, 7 Feb 2025 10:50:51 +0000 Subject: [PATCH] Sliming down attempt --- .gitea/workflows/build.yaml | 44 ------------------------------------- .gitignore | 4 +++- Dockerfile | 2 +- README.md | 6 ++--- 4 files changed, 7 insertions(+), 49 deletions(-) delete mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml deleted file mode 100644 index e6def0f..0000000 --- a/.gitea/workflows/build.yaml +++ /dev/null @@ -1,44 +0,0 @@ -name: Build and test -run-name: Perform a regular build and test -on: push - -jobs: - requirements: - runs-on: ubuntu-latest - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.2' - extensions: mbstring, xml, curl, zip - tools: composer, phpdoc - coverage: xdebug - - name: Install dependencies - run: | - composer config github-oauth.github.com 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 - composer install - wget https://downloads.rclone.org/rclone-current-linux-amd64.deb - dpkg -i rclone-current-linux-amd64.deb - - name: Dry run - run: ./backup show config.example.yml - - name: Static analysis - run: composer analyze - - name: Test - run: composer test-full - - name: Upload Test report - uses: actions/upload-artifact@v3 - with: - path: output/test.html - name: test.html - - uses: actions/upload-artifact@v3 - with: - path: output/coverage - name: test-coverage.zip - - name: Document - run: phpdoc run - - uses: actions/upload-artifact@v3 - with: - path: output/docs - name: documentation.zip \ No newline at end of file diff --git a/.gitignore b/.gitignore index 809aa23..c4185ec 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,6 @@ config.yml *.phar *.deb .phpunit.result.cache -*cache/ \ No newline at end of file +*cache/ +rclone +rclone.conf \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 98d7e08..dda9c21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM php:8.3-cli +FROM php:8.4-cli COPY . /app WORKDIR /app \ No newline at end of file diff --git a/README.md b/README.md index bfb00ef..e3566af 100644 --- a/README.md +++ b/README.md @@ -5,14 +5,14 @@ Backup script utilizing Rclone to backup local file systems and send notifications. # Minimum requirements -- PHP8.1 +- PHP8.4 - Composer to install required packages. - Rclone installed # Rclone install -rm rclone-current-linux-amd64.deb wget https://downloads.rclone.org/rclone-current-linux-amd64.deb sudo dpkg -i rclone-current-linux-amd64.deb +rm rclone-current-linux-amd64.deb # For development @@ -20,7 +20,7 @@ sudo dpkg -i rclone-current-linux-amd64.deb curl -sSL https://packages.sury.org/php/README.txt | sudo bash -x sudo apt update sudo apt upgrade -sudo apt install php8.3-cli php8.3-xml php8.3-curl php8.3-zip php8.3-xdebug php8.3-mbstring unzip wget graphviz plantuml +sudo apt install php8.34-cli php8.4-xml php8.34-curl php8.4-zip php8.4-xdebug php8.4-mbstring unzip wget graphviz plantuml # PHP Docs rm phpDocumentor.phar