diff --git a/.github/workflows/build-devel-image.yml b/.github/workflows/build-devel-image.yml index 86b13cc9b..35a3b123b 100644 --- a/.github/workflows/build-devel-image.yml +++ b/.github/workflows/build-devel-image.yml @@ -1,4 +1,4 @@ -name: Publish Docker devel image +name: Build Docker devel image on: push: diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 749bca499..1d2bd946d 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -1,4 +1,4 @@ -name: Publish Docker image +name: Build Docker image on: release: @@ -15,12 +15,8 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v6 - # Production with: ref: 'main' - # Debug only - # with: - # ref: 'devel' - name: Retrieve Repomanager version run: | @@ -28,28 +24,22 @@ jobs: echo "Version: ${{ env.VERSION }}" - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Log in to the container registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_TOKEN }} - # Build the images + # Build the image - name: Build and push docker uses: docker/build-push-action@v2 with: file: Dockerfile - # Debug only - # push: true - # tags: lbr38/repomanager:devel - # platforms: linux/amd64,linux/arm64,linux/arm/v7 - - # Production push: true tags: lbr38/repomanager:latest, lbr38/repomanager:${{ env.VERSION }} platforms: linux/amd64,linux/arm64,linux/arm/v7 diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index e36aaad01..f9043460e 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -2,10 +2,7 @@ name: PHP CodeSniffer on: push: - branches: [ devel ] - pull_request: - push: - branches: [ main ] + jobs: phpcs: runs-on: ubuntu-latest @@ -18,7 +15,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.3' + php-version: '8.4' coverage: none tools: composer, cs2pr diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index e722514af..4b116cfef 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -2,9 +2,6 @@ name: PHPStan on: push: - branches: [ main, devel ] - pull_request: - branches: [ main ] jobs: phpstan: diff --git a/.github/workflows/source-repository-templates.yml b/.github/workflows/source-repository-templates.yml index 470abac7f..ce2928f2f 100644 --- a/.github/workflows/source-repository-templates.yml +++ b/.github/workflows/source-repository-templates.yml @@ -2,9 +2,6 @@ name: Validate source repository templates on: push: - branches: [ devel ] - pull_request: - branches: [ main, devel ] jobs: validate: diff --git a/.github/workflows/tasks.yml b/.github/workflows/tasks.yml index 253b1e0da..9df254e6b 100644 --- a/.github/workflows/tasks.yml +++ b/.github/workflows/tasks.yml @@ -2,10 +2,6 @@ name: Run rpm and deb tasks on: push: - branches: [ devel ] - pull_request: - push: - branches: [ main ] jobs: run-deb-tasks: diff --git a/.github/workflows/test-ansible-role.yml b/.github/workflows/test-ansible-role.yml index fb7ff3c0f..0e3887a41 100644 --- a/.github/workflows/test-ansible-role.yml +++ b/.github/workflows/test-ansible-role.yml @@ -2,10 +2,7 @@ name: Test ansible role on: push: - branches: [ devel ] - pull_request: - push: - branches: [ main ] + jobs: ansible: runs-on: ubuntu-latest diff --git a/.github/workflows/test-api.yml b/.github/workflows/test-api.yml index fb84ee2ba..722844436 100644 --- a/.github/workflows/test-api.yml +++ b/.github/workflows/test-api.yml @@ -2,7 +2,6 @@ name: Test Repomanager API on: push: - branches: [ devel ] jobs: api-test: diff --git a/.github/workflows/test-database-update.yml b/.github/workflows/test-database-update.yml index da68ddc58..0b187807a 100644 --- a/.github/workflows/test-database-update.yml +++ b/.github/workflows/test-database-update.yml @@ -2,10 +2,7 @@ name: Database update tests on: push: - branches: [ devel ] - pull_request: - push: - branches: [ main ] + jobs: test-database-update: runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index a98875dfa..ef9ade5c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,7 +92,7 @@ WORKDIR ${DATA_DIR} # Set healthcheck # Check if nginx is responding on the expected port (default 8080 if NGINX_LISTEN_PORT is not set) -HEALTHCHECK --interval=30s --timeout=3s --retries=3 \ - CMD /bin/sh -c 'curl -fsS http://localhost:${NGINX_LISTEN_PORT:-8080} || exit 1' +HEALTHCHECK --interval=30s --timeout=10s --retries=3 \ + CMD /bin/sh -c 'curl -fsS http://127.0.0.1:${NGINX_LISTEN_PORT:-8080} || exit 1' ENTRYPOINT ["/init"] diff --git a/www/controllers/Repo/Mirror/Deb.php b/www/controllers/Repo/Mirror/Deb.php index 4f7eba033..c738477ac 100644 --- a/www/controllers/Repo/Mirror/Deb.php +++ b/www/controllers/Repo/Mirror/Deb.php @@ -721,7 +721,7 @@ private function downloadDebPackages($url) : void */ // First check if package has arch in its name, else ignore it - if (!preg_match('/(amd64|arm64|armel|armhf|i386|mips|mips64el|mipsel|ppc64el|s390x|all).deb$/', $debPackageName)) { + if (!preg_match('/(amd64|x64|arm64|armel|armhf|i386|mips|mips64el|mipsel|ppc64el|s390x|all).deb$/', $debPackageName)) { $this->taskLogSubStepController->warning('Package does not have a valid arch in its name (ignoring)'); continue; } @@ -732,6 +732,7 @@ private function downloadDebPackages($url) : void * e.g. filebeat-8.0.0.amd64.deb -> filebeat-8.0.0_amd64.deb */ $debPackageName = preg_replace('/[-.]amd64.deb$/', '_amd64.deb', $debPackageName); + $debPackageName = preg_replace('/[-.]x64.deb$/', '_amd64.deb', $debPackageName); // Some repositories use x64 instead of amd64 (e.g. opensearch) $debPackageName = preg_replace('/[-.]arm64.deb$/', '_arm64.deb', $debPackageName); $debPackageName = preg_replace('/[-.]armel.deb$/', '_armel.deb', $debPackageName); $debPackageName = preg_replace('/[-.]armhf.deb$/', '_armhf.deb', $debPackageName); diff --git a/www/version b/www/version index e2b3d6a8a..4b6549774 100644 --- a/www/version +++ b/www/version @@ -1 +1 @@ -5.13.3 \ No newline at end of file +5.13.4 \ No newline at end of file