Skip to content

Sourcebroker update#32

Open
maikschneider wants to merge 14 commits intomainfrom
sourcebroker-update
Open

Sourcebroker update#32
maikschneider wants to merge 14 commits intomainfrom
sourcebroker-update

Conversation

@maikschneider
Copy link
Member

@maikschneider maikschneider commented Nov 22, 2025

This PR updates xima-media/xima-deployer-extended-typo3 to the latest version of the sourcebroker-deployer packages.

Changes made to this package

  • Use of new Loader \SourceBroker\DeployerLoader\Load
  • Add buffer:start and buffer:stop tasks that were removed by sourcebroker
  • Always use rsync deployment
  • Define deploy and deploy-fast tasks
  • Replace bin/typo3cms with local/bin/typo3
  • Remove OptionUtility override: Custom options need the tx-prefix, see below.

Migration of deploy.php:

Adjust the loading at the beginning:

- require_once(__DIR__ . '/vendor/xima/xima-deployer-extended-typo3/autoload.php');
+ require_once './vendor/autoload.php';
+ new \Xima\XimaDeployerExtendedTypo3\Loader();

Remove the task configuration for rsync deployment - this is now done by default:

-// rsync all needed files for non-git deployment
-task('deploy:update_code')->disable();
-after('deploy:update_code', 'deploy:upload_code');

Inside cache warmup task, replace the legacy use of bin/typo3cms variable:

// cache warmup
task('deploy:cache:warmup', function () {
    $activePath = get('deploy_path') . '/' . (test('[ -L {{deploy_path}}/release ]') ? 'release' : 'current');
-    run('cd ' . $activePath . ' && {{bin/php}} {{bin/typo3cms}} cache:warmup');
+    run('cd ' . $activePath . ' && {{bin/php}} {{local/bin/typo3}} cache:warmup');
    run('cd ' . $activePath . ' && {{bin/php}} ./vendor/bin/cache-warmup ' . get('public_urls')[0] . '/sitemap.xml -v || true', no_throw: true);
});

Add tx-prefix to custom options, used in:

  • deploy, deploy-fast tasks: base_branch option renamed to txBaseBranch
  • reset:from_gitlab_artifact task: token and dumpcode renamed to txToken and txDumpcode
- vendor/bin/dep reset:from_gitlab_artifact --options="token:$CI_VARIABLE_WITH_API_TOKEN,dumpcode:myArtifact" host-a
+ vendor/bin/dep reset:from_gitlab_artifact --options="txToken:$CI_VARIABLE_WITH_API_TOKEN,txDumpcode:myArtifact" host-a

Migration of gitlab-ci.yml

Include version 2.0.0 or later for compatibility:

include:
  - project: 'typo3/intern/devops/sys-t3-ansible-management'
-    ref: 1.5.0
+    ref: 2.0.0
    file:
      - 'gitlab-templates/manage-environment.yml'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant