Skip to content

Commit

Permalink
Publishing new layers and update Travis (brefphp#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm authored Dec 30, 2019
1 parent 2796b0d commit 25113f4
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 41 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 10 additions & 4 deletions checksums.json
Original file line number Diff line number Diff line change
@@ -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"
}
182 changes: 145 additions & 37 deletions layers.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"blackfire-php-74": {
"amqp-php-72": {
"ca-central-1": 1,
"eu-central-1": 1,
"eu-north-1": 1,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
}
}
7 changes: 7 additions & 0 deletions src/Command/PublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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');

Expand Down

0 comments on commit 25113f4

Please sign in to comment.