mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit e3f20c1fb6
e3f20c1fb6
[docker] remove docker building from release repository (#614)
This commit is contained in:
parent
e9e85a1300
commit
71c00f366f
|
@ -17,12 +17,9 @@ CODE_OF_CONDUCT.md export-ignore
|
||||||
# exclude only root dirs, otherwise nette/utils is removed - see https://github.com/TomasVotruba/tomasvotruba.com/pull/1197/checks?check_run_id=2577329283
|
# exclude only root dirs, otherwise nette/utils is removed - see https://github.com/TomasVotruba/tomasvotruba.com/pull/1197/checks?check_run_id=2577329283
|
||||||
/stubs export-ignore
|
/stubs export-ignore
|
||||||
|
|
||||||
Dockerfile export-ignore
|
|
||||||
docs/images export-ignore
|
docs/images export-ignore
|
||||||
.docker export-ignore
|
|
||||||
.github export-ignore
|
.github export-ignore
|
||||||
/e2e export-ignore
|
/e2e export-ignore
|
||||||
.dockerignore export-ignore
|
|
||||||
|
|
||||||
# testing Windows spaces - https://help.github.com/en/github/using-git/configuring-git-to-handle-line-endings
|
# testing Windows spaces - https://help.github.com/en/github/using-git/configuring-git-to-handle-line-endings
|
||||||
packages/better-php-doc-parser/tests/PhpDocInfo/PhpDocInfoPrinter/FixtureBasic/with_spac.txt text eol=crlf
|
packages/better-php-doc-parser/tests/PhpDocInfo/PhpDocInfoPrinter/FixtureBasic/with_spac.txt text eol=crlf
|
||||||
|
|
|
@ -1,64 +0,0 @@
|
||||||
name: Build docker images
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
# Publish `main` as Docker `latest` image.
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
# Publish `v1.2.3` tags as releases.
|
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
env:
|
|
||||||
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
|
|
||||||
COMPOSER_ROOT_VERSION: "dev-main"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
publish_images:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v1
|
|
||||||
|
|
||||||
- name: Login to DockerHub
|
|
||||||
uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Build images
|
|
||||||
run: |
|
|
||||||
DOCKER_TAGS=""
|
|
||||||
|
|
||||||
# Pull tag and branch from github.ref, which is either refs/heads/... or refs/tags/...
|
|
||||||
TAG=$(echo "${{ github.ref }}" | sed -e '/refs\/tags\//!d; s,refs/.*/v\?\(.*\),\1,')
|
|
||||||
BRANCH=$(echo "${{ github.ref }}" | sed -e '/refs\/heads\//!d; s,refs/.*/\(.*\),\1,')
|
|
||||||
|
|
||||||
if [ "main" == "$BRANCH" ]; then
|
|
||||||
DOCKER_TAGS="$DOCKER_TAGS latest"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -z "$TAG" ]; then
|
|
||||||
DOCKER_TAGS="$DOCKER_TAGS $TAG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Image will be tagged with: $DOCKER_TAGS"
|
|
||||||
|
|
||||||
DOCKER_TAG_ARG=""
|
|
||||||
for ARG in $DOCKER_TAGS; do
|
|
||||||
DOCKER_TAG_ARG="$DOCKER_TAG_ARG --tag rector/rector:$ARG"
|
|
||||||
done
|
|
||||||
|
|
||||||
docker buildx create --name builder-php8 --use
|
|
||||||
docker buildx build \
|
|
||||||
--progress plain \
|
|
||||||
--cache-from=rector/rector:build-cache-php8 \
|
|
||||||
--cache-to=type=registry,ref=rector/rector:build-cache-php8,mode=max,push=true \
|
|
||||||
--target rector \
|
|
||||||
--push \
|
|
||||||
$DOCKER_TAG_ARG \
|
|
||||||
--platform linux/amd64,linux/arm64 \
|
|
||||||
--build-arg PHP_VERSION=8 .
|
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = 'a8b01f217b9702f7dd6e485f84fe46a6dabe0d86';
|
public const PACKAGE_VERSION = 'e3f20c1fb6665e7f0f6f84ced015f9eff86b6834';
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2021-08-08 00:14:44';
|
public const RELEASE_DATE = '2021-08-08 18:42:15';
|
||||||
public static function resolvePackageVersion() : string
|
public static function resolvePackageVersion() : string
|
||||||
{
|
{
|
||||||
$process = new \RectorPrefix20210808\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
$process = new \RectorPrefix20210808\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
|
|
||||||
require_once __DIR__ . '/composer/autoload_real.php';
|
require_once __DIR__ . '/composer/autoload_real.php';
|
||||||
|
|
||||||
return ComposerAutoloaderInita0e1dbf7efc32e02c49e682e647d5f3e::getLoader();
|
return ComposerAutoloaderInitd68240002bad7ce1a50ee6dd5c914b1b::getLoader();
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
// autoload_real.php @generated by Composer
|
// autoload_real.php @generated by Composer
|
||||||
|
|
||||||
class ComposerAutoloaderInita0e1dbf7efc32e02c49e682e647d5f3e
|
class ComposerAutoloaderInitd68240002bad7ce1a50ee6dd5c914b1b
|
||||||
{
|
{
|
||||||
private static $loader;
|
private static $loader;
|
||||||
|
|
||||||
|
@ -22,15 +22,15 @@ class ComposerAutoloaderInita0e1dbf7efc32e02c49e682e647d5f3e
|
||||||
return self::$loader;
|
return self::$loader;
|
||||||
}
|
}
|
||||||
|
|
||||||
spl_autoload_register(array('ComposerAutoloaderInita0e1dbf7efc32e02c49e682e647d5f3e', 'loadClassLoader'), true, true);
|
spl_autoload_register(array('ComposerAutoloaderInitd68240002bad7ce1a50ee6dd5c914b1b', 'loadClassLoader'), true, true);
|
||||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||||
spl_autoload_unregister(array('ComposerAutoloaderInita0e1dbf7efc32e02c49e682e647d5f3e', 'loadClassLoader'));
|
spl_autoload_unregister(array('ComposerAutoloaderInitd68240002bad7ce1a50ee6dd5c914b1b', 'loadClassLoader'));
|
||||||
|
|
||||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||||
if ($useStaticLoader) {
|
if ($useStaticLoader) {
|
||||||
require __DIR__ . '/autoload_static.php';
|
require __DIR__ . '/autoload_static.php';
|
||||||
|
|
||||||
call_user_func(\Composer\Autoload\ComposerStaticInita0e1dbf7efc32e02c49e682e647d5f3e::getInitializer($loader));
|
call_user_func(\Composer\Autoload\ComposerStaticInitd68240002bad7ce1a50ee6dd5c914b1b::getInitializer($loader));
|
||||||
} else {
|
} else {
|
||||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||||
if ($classMap) {
|
if ($classMap) {
|
||||||
|
@ -42,19 +42,19 @@ class ComposerAutoloaderInita0e1dbf7efc32e02c49e682e647d5f3e
|
||||||
$loader->register(true);
|
$loader->register(true);
|
||||||
|
|
||||||
if ($useStaticLoader) {
|
if ($useStaticLoader) {
|
||||||
$includeFiles = Composer\Autoload\ComposerStaticInita0e1dbf7efc32e02c49e682e647d5f3e::$files;
|
$includeFiles = Composer\Autoload\ComposerStaticInitd68240002bad7ce1a50ee6dd5c914b1b::$files;
|
||||||
} else {
|
} else {
|
||||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||||
}
|
}
|
||||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||||
composerRequirea0e1dbf7efc32e02c49e682e647d5f3e($fileIdentifier, $file);
|
composerRequired68240002bad7ce1a50ee6dd5c914b1b($fileIdentifier, $file);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $loader;
|
return $loader;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function composerRequirea0e1dbf7efc32e02c49e682e647d5f3e($fileIdentifier, $file)
|
function composerRequired68240002bad7ce1a50ee6dd5c914b1b($fileIdentifier, $file)
|
||||||
{
|
{
|
||||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||||
require $file;
|
require $file;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
namespace Composer\Autoload;
|
namespace Composer\Autoload;
|
||||||
|
|
||||||
class ComposerStaticInita0e1dbf7efc32e02c49e682e647d5f3e
|
class ComposerStaticInitd68240002bad7ce1a50ee6dd5c914b1b
|
||||||
{
|
{
|
||||||
public static $files = array (
|
public static $files = array (
|
||||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||||
|
@ -3846,9 +3846,9 @@ class ComposerStaticInita0e1dbf7efc32e02c49e682e647d5f3e
|
||||||
public static function getInitializer(ClassLoader $loader)
|
public static function getInitializer(ClassLoader $loader)
|
||||||
{
|
{
|
||||||
return \Closure::bind(function () use ($loader) {
|
return \Closure::bind(function () use ($loader) {
|
||||||
$loader->prefixLengthsPsr4 = ComposerStaticInita0e1dbf7efc32e02c49e682e647d5f3e::$prefixLengthsPsr4;
|
$loader->prefixLengthsPsr4 = ComposerStaticInitd68240002bad7ce1a50ee6dd5c914b1b::$prefixLengthsPsr4;
|
||||||
$loader->prefixDirsPsr4 = ComposerStaticInita0e1dbf7efc32e02c49e682e647d5f3e::$prefixDirsPsr4;
|
$loader->prefixDirsPsr4 = ComposerStaticInitd68240002bad7ce1a50ee6dd5c914b1b::$prefixDirsPsr4;
|
||||||
$loader->classMap = ComposerStaticInita0e1dbf7efc32e02c49e682e647d5f3e::$classMap;
|
$loader->classMap = ComposerStaticInitd68240002bad7ce1a50ee6dd5c914b1b::$classMap;
|
||||||
|
|
||||||
}, null, ClassLoader::class);
|
}, null, ClassLoader::class);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
||||||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||||
spl_autoload_call('RectorPrefix20210808\AutoloadIncluder');
|
spl_autoload_call('RectorPrefix20210808\AutoloadIncluder');
|
||||||
}
|
}
|
||||||
if (!class_exists('ComposerAutoloaderInita0e1dbf7efc32e02c49e682e647d5f3e', false) && !interface_exists('ComposerAutoloaderInita0e1dbf7efc32e02c49e682e647d5f3e', false) && !trait_exists('ComposerAutoloaderInita0e1dbf7efc32e02c49e682e647d5f3e', false)) {
|
if (!class_exists('ComposerAutoloaderInitd68240002bad7ce1a50ee6dd5c914b1b', false) && !interface_exists('ComposerAutoloaderInitd68240002bad7ce1a50ee6dd5c914b1b', false) && !trait_exists('ComposerAutoloaderInitd68240002bad7ce1a50ee6dd5c914b1b', false)) {
|
||||||
spl_autoload_call('RectorPrefix20210808\ComposerAutoloaderInita0e1dbf7efc32e02c49e682e647d5f3e');
|
spl_autoload_call('RectorPrefix20210808\ComposerAutoloaderInitd68240002bad7ce1a50ee6dd5c914b1b');
|
||||||
}
|
}
|
||||||
if (!class_exists('AjaxLogin', false) && !interface_exists('AjaxLogin', false) && !trait_exists('AjaxLogin', false)) {
|
if (!class_exists('AjaxLogin', false) && !interface_exists('AjaxLogin', false) && !trait_exists('AjaxLogin', false)) {
|
||||||
spl_autoload_call('RectorPrefix20210808\AjaxLogin');
|
spl_autoload_call('RectorPrefix20210808\AjaxLogin');
|
||||||
|
@ -3305,9 +3305,9 @@ if (!function_exists('print_node')) {
|
||||||
return \RectorPrefix20210808\print_node(...func_get_args());
|
return \RectorPrefix20210808\print_node(...func_get_args());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!function_exists('composerRequirea0e1dbf7efc32e02c49e682e647d5f3e')) {
|
if (!function_exists('composerRequired68240002bad7ce1a50ee6dd5c914b1b')) {
|
||||||
function composerRequirea0e1dbf7efc32e02c49e682e647d5f3e() {
|
function composerRequired68240002bad7ce1a50ee6dd5c914b1b() {
|
||||||
return \RectorPrefix20210808\composerRequirea0e1dbf7efc32e02c49e682e647d5f3e(...func_get_args());
|
return \RectorPrefix20210808\composerRequired68240002bad7ce1a50ee6dd5c914b1b(...func_get_args());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!function_exists('parseArgs')) {
|
if (!function_exists('parseArgs')) {
|
||||||
|
|
Loading…
Reference in New Issue