From 25113f48b21ca7387e276b3b2d3f831acf9e52a0 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Mon, 30 Dec 2019 18:16:15 +0100 Subject: [PATCH] Publishing new layers and update Travis (#8) --- .travis.yml | 2 + checksums.json | 14 ++- layers.json | 182 ++++++++++++++++++++++++++------- src/Command/PublishCommand.php | 7 ++ 4 files changed, 164 insertions(+), 41 deletions(-) diff --git a/.travis.yml b/.travis.yml index 464c73d2..6942f02c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,8 @@ services: env: - LAYER=amqp PHP="72 73 74" - LAYER=blackfire PHP="72 73 74" + - LAYER=gmp PHP="72 73 74" + - LAYER=memcached PHP="72 73 74" - LAYER=xdebug PHP="72 73 74" before_install: diff --git a/checksums.json b/checksums.json index 8242f30d..491b5207 100644 --- a/checksums.json +++ b/checksums.json @@ -1,11 +1,17 @@ { - "blackfire-php-74": "d84b2d7f3e290237a40994e2d758fb05", + "amqp-php-72": "5f7a99b816afb6f8135b0c03d047a45f", + "amqp-php-73": "32a6249787c6d087a8d7f9ee1576cb51", "amqp-php-74": "a77a771d9fbdb85c3733be399fe1d674", - "xdebug-php-74": "943b56db0f477f0be019318338f84dcb", "blackfire-php-72": "41ee2abc51d6645b451b1ca712b989eb", "blackfire-php-73": "b8c9548691e517c73aa9342fc17d7a85", - "amqp-php-72": "5f7a99b816afb6f8135b0c03d047a45f", + "blackfire-php-74": "d84b2d7f3e290237a40994e2d758fb05", + "gmp-php-72": "69ed7961ec8a033c38a8bb42be585511", + "gmp-php-73": "4f15e5c23678d8601f33188277701160", + "gmp-php-74": "9f30c5d02aab1a509d34d81ce65cc1b8", + "memcached-php-72": "cba6854cf7a4d6fc52607dc236cad9a4", + "memcached-php-73": "3a283bb60997aa2a756909dcc21bbb0f", + "memcached-php-74": "c4ab31ec43aecd6ac0478196d5c3ed6d", "xdebug-php-72": "44d5a532fcb4a54ac4d9b2d6f1337c92", "xdebug-php-73": "4918003f160dd65986f5247d283846d4", - "amqp-php-73": "32a6249787c6d087a8d7f9ee1576cb51" + "xdebug-php-74": "943b56db0f477f0be019318338f84dcb" } \ No newline at end of file diff --git a/layers.json b/layers.json index d8a6823f..5db23792 100644 --- a/layers.json +++ b/layers.json @@ -1,5 +1,5 @@ { - "blackfire-php-74": { + "amqp-php-72": { "ca-central-1": 1, "eu-central-1": 1, "eu-north-1": 1, @@ -17,25 +17,25 @@ "ap-southeast-1": 1, "ap-southeast-2": 1 }, - "amqp-php-74": { - "ca-central-1": 1, - "eu-central-1": 1, - "eu-north-1": 1, - "eu-west-1": 1, - "eu-west-2": 1, - "eu-west-3": 1, - "sa-east-1": 1, - "us-east-1": 1, - "us-east-2": 1, - "us-west-1": 1, - "us-west-2": 1, - "ap-south-1": 1, - "ap-northeast-1": 1, - "ap-northeast-2": 1, - "ap-southeast-1": 1, - "ap-southeast-2": 1 + "amqp-php-73": { + "ca-central-1": 4, + "eu-central-1": 4, + "eu-north-1": 4, + "eu-west-1": 4, + "eu-west-2": 4, + "eu-west-3": 4, + "sa-east-1": 4, + "us-east-1": 4, + "us-east-2": 4, + "us-west-1": 4, + "us-west-2": 4, + "ap-south-1": 4, + "ap-northeast-1": 4, + "ap-northeast-2": 4, + "ap-southeast-1": 4, + "ap-southeast-2": 4 }, - "xdebug-php-74": { + "amqp-php-74": { "ca-central-1": 1, "eu-central-1": 1, "eu-north-1": 1, @@ -89,7 +89,115 @@ "ap-southeast-1": 2, "ap-southeast-2": 2 }, - "amqp-php-72": { + "blackfire-php-74": { + "ca-central-1": 1, + "eu-central-1": 1, + "eu-north-1": 1, + "eu-west-1": 1, + "eu-west-2": 1, + "eu-west-3": 1, + "sa-east-1": 1, + "us-east-1": 1, + "us-east-2": 1, + "us-west-1": 1, + "us-west-2": 1, + "ap-south-1": 1, + "ap-northeast-1": 1, + "ap-northeast-2": 1, + "ap-southeast-1": 1, + "ap-southeast-2": 1 + }, + "gmp-php-72": { + "ca-central-1": 1, + "eu-central-1": 1, + "eu-north-1": 1, + "eu-west-1": 1, + "eu-west-2": 1, + "eu-west-3": 1, + "sa-east-1": 1, + "us-east-1": 1, + "us-east-2": 1, + "us-west-1": 1, + "us-west-2": 1, + "ap-south-1": 1, + "ap-northeast-1": 1, + "ap-northeast-2": 1, + "ap-southeast-1": 1, + "ap-southeast-2": 1 + }, + "gmp-php-73": { + "ca-central-1": 1, + "eu-central-1": 2, + "eu-north-1": 1, + "eu-west-1": 1, + "eu-west-2": 1, + "eu-west-3": 1, + "sa-east-1": 1, + "us-east-1": 1, + "us-east-2": 1, + "us-west-1": 1, + "us-west-2": 1, + "ap-south-1": 1, + "ap-northeast-1": 1, + "ap-northeast-2": 1, + "ap-southeast-1": 1, + "ap-southeast-2": 1 + }, + "gmp-php-74": { + "ca-central-1": 1, + "eu-central-1": 1, + "eu-north-1": 1, + "eu-west-1": 1, + "eu-west-2": 1, + "eu-west-3": 1, + "sa-east-1": 1, + "us-east-1": 1, + "us-east-2": 1, + "us-west-1": 1, + "us-west-2": 1, + "ap-south-1": 1, + "ap-northeast-1": 1, + "ap-northeast-2": 1, + "ap-southeast-1": 1, + "ap-southeast-2": 1 + }, + "memcached-php-72": { + "ca-central-1": 1, + "eu-central-1": 1, + "eu-north-1": 1, + "eu-west-1": 1, + "eu-west-2": 1, + "eu-west-3": 1, + "sa-east-1": 1, + "us-east-1": 1, + "us-east-2": 1, + "us-west-1": 1, + "us-west-2": 1, + "ap-south-1": 1, + "ap-northeast-1": 1, + "ap-northeast-2": 1, + "ap-southeast-1": 1, + "ap-southeast-2": 1 + }, + "memcached-php-73": { + "ca-central-1": 4, + "eu-central-1": 6, + "eu-north-1": 4, + "eu-west-1": 4, + "eu-west-2": 4, + "eu-west-3": 4, + "sa-east-1": 4, + "us-east-1": 4, + "us-east-2": 4, + "us-west-1": 4, + "us-west-2": 4, + "ap-south-1": 4, + "ap-northeast-1": 4, + "ap-northeast-2": 4, + "ap-southeast-1": 4, + "ap-southeast-2": 4 + }, + "memcached-php-74": { "ca-central-1": 1, "eu-central-1": 1, "eu-north-1": 1, @@ -143,22 +251,22 @@ "ap-southeast-1": 3, "ap-southeast-2": 3 }, - "amqp-php-73": { - "ca-central-1": 4, - "eu-central-1": 4, - "eu-north-1": 4, - "eu-west-1": 4, - "eu-west-2": 4, - "eu-west-3": 4, - "sa-east-1": 4, - "us-east-1": 4, - "us-east-2": 4, - "us-west-1": 4, - "us-west-2": 4, - "ap-south-1": 4, - "ap-northeast-1": 4, - "ap-northeast-2": 4, - "ap-southeast-1": 4, - "ap-southeast-2": 4 + "xdebug-php-74": { + "ca-central-1": 1, + "eu-central-1": 1, + "eu-north-1": 1, + "eu-west-1": 1, + "eu-west-2": 1, + "eu-west-3": 1, + "sa-east-1": 1, + "us-east-1": 1, + "us-east-2": 1, + "us-west-1": 1, + "us-west-2": 1, + "ap-south-1": 1, + "ap-northeast-1": 1, + "ap-northeast-2": 1, + "ap-southeast-1": 1, + "ap-southeast-2": 1 } } \ No newline at end of file diff --git a/src/Command/PublishCommand.php b/src/Command/PublishCommand.php index 2db418d6..67b9ac4b 100644 --- a/src/Command/PublishCommand.php +++ b/src/Command/PublishCommand.php @@ -46,6 +46,11 @@ public function __invoke(OutputInterface $output): int } } $output->writeln(sprintf('Found %d new layers', count($layers))); + foreach ($layers as $layer => $file) { + $output->writeln('- ' . $layer); + } + $output->writeln(''); + $output->writeln('Publishing new layers:'); try { $this->publisher->publishLayers($layers, $this->regionProvider->getAll()); @@ -58,6 +63,8 @@ public function __invoke(OutputInterface $output): int // Dump checksums file_put_contents($this->projectDir . '/checksums.json', json_encode($discoveredChecksums, \JSON_PRETTY_PRINT)); + $output->writeln(''); + $output->writeln(''); $output->writeln('Done'); $output->writeln('Remember to commit and push changes to ./checksums.json');