Skip to content

Modular logistics and supply chain operating system (LSOS)

should fix pipeline, using all latest versions for monorepo arch

Ronald A. Richardson33b6174247a0
diff --git a/api/composer.json b/api/composer.json
index 48d3aeda..6b3e27c1 100644
--- a/api/composer.json
+++ b/api/composer.json
@@ -10,8 +10,8 @@
"require": {
"php": "^7.3|^8.0",
"fleetbase/core-api": "^1.3.1",
- "fleetbase/fleetops-api": "^0.2.7",
- "fleetbase/storefront-api": "^0.1.9",
+ "fleetbase/fleetops-api": "^0.2.8",
+ "fleetbase/storefront-api": "^0.2.0",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.75",
diff --git a/api/composer.lock b/api/composer.lock
index dcca6c45..bc376f24 100644
--- a/api/composer.lock
+++ b/api/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "54d0d23a78c49cc0822cd551b777300f",
+ "content-hash": "d7dd425fca477197e2f47d776d3cf76f",
"packages": [
{
"name": "aloha/twilio",
@@ -2002,11 +2002,17 @@
},
{
"name": "fleetbase/core-api",
- "version": "1.3.0",
+ "version": "1.3.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/fleetbase/core-api.git",
+ "reference": "0b0fb9cde5e82caaf2b51f68960908f3c9a35a82"
+ },
"dist": {
- "type": "path",
- "url": "../packages/core-api",
- "reference": "995aa3b5fae8c9f2caff5e874753679f686a0513"
+ "type": "zip",
+ "url": "https://api.github.com/repos/fleetbase/core-api/zipball/0b0fb9cde5e82caaf2b51f68960908f3c9a35a82",
+ "reference": "0b0fb9cde5e82caaf2b51f68960908f3c9a35a82",
+ "shasum": ""
},
"require": {
"aloha/twilio": "^5.0",
@@ -2037,10 +2043,11 @@
"xantios/mimey": "^2.2.0"
},
"require-dev": {
- "friendsofphp/php-cs-fixer": "^2.16.4",
- "pestphp/pest": "^0.3.8",
- "phpstan/phpstan": "^0.12.48",
- "symfony/var-dumper": "^5.2.0"
+ "friendsofphp/php-cs-fixer": "^3.34.1",
+ "nunomaduro/collision": "^5.11.0|^6.4.0",
+ "pestphp/pest": "^1.22.6",
+ "phpstan/phpstan": "^1.10.38",
+ "symfony/var-dumper": "^5.4.29"
},
"type": "library",
"extra": {
@@ -2058,30 +2065,7 @@
"Fleetbase\\Seeds\\": "seeds/"
}
},
- "autoload-dev": {
- "psr-4": {
- "Fleetbase\\Tests\\": "tests/"
- }
- },
- "scripts": {
- "lint": [
- "php-cs-fixer fix -v"
- ],
- "test:lint": [
- "php-cs-fixer fix -v --dry-run"
- ],
- "test:types": [
- "phpstan analyse --ansi --memory-limit=0"
- ],
- "test:unit": [
- "pest --colors=always"
- ],
- "test": [
- "@test:lint",
- "@test:types",
- "@test:unit"
- ]
- },
+ "notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
@@ -2100,121 +2084,31 @@
"fleetbase",
"logistics platform"
],
- "transport-options": {
- "relative": true
- }
- },
- {
- "name": "fleetbase/fleetops",
- "version": "0.0.1",
- "dist": {
- "type": "path",
- "url": "../packages/fleetops",
- "reference": "03dafb169e6ecb5425cd46353dca29f5ee6bd6d2"
- },
- "require": {
- "barryvdh/laravel-dompdf": "^2.0",
- "brick/geo": "0.7.2",
- "cknow/laravel-money": "^7.1",
- "fleetbase/core-api": "^1.3.0",
- "geocoder-php/google-maps-places-provider": "^1.4",
- "giggsey/libphonenumber-for-php": "^8.13",
- "league/geotools": "^1.1.0",
- "milon/barcode": "^9.0",
- "php": "^7.4|^8.0",
- "php-http/guzzle7-adapter": "^1.0",
- "psr/http-factory-implementation": "*",
- "toin0u/geocoder-laravel": "^4.4",
- "webit/eval-math": "^1.0"
- },
- "require-dev": {
- "friendsofphp/php-cs-fixer": "^2.16.4",
- "pestphp/pest": "^0.3.8",
- "phpstan/phpstan": "^0.12.48",
- "symfony/var-dumper": "^5.2.0"
- },
- "type": "library",
- "extra": {
- "laravel": {
- "providers": [
- "Fleetbase\\FleetOps\\Providers\\FleetOpsServiceProvider",
- "Fleetbase\\FleetOps\\Providers\\EventServiceProvider"
- ]
- }
- },
- "autoload": {
- "psr-4": {
- "Fleetbase\\FleetOps\\": "server/src/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Fleetbase\\Tests\\": "server/tests/"
- }
- },
- "scripts": {
- "lint": [
- "php-cs-fixer fix -v"
- ],
- "test:lint": [
- "php-cs-fixer fix -v --dry-run"
- ],
- "test:types": [
- "phpstan analyse --ansi --memory-limit=0"
- ],
- "test:unit": [
- "pest --colors=always"
- ],
- "test": [
- "@test:lint",
- "@test:types",
- "@test:unit"
- ]
+ "support": {
+ "issues": "https://github.com/fleetbase/core-api/issues",
+ "source": "https://github.com/fleetbase/core-api/tree/v1.3.1"
},
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fleetbase Pte Ltd.",
- "email": "[email protected]"
- },
- {
- "name": "Ronald A. Richardson",
- "email": "[email protected]"
- }
- ],
- "description": "FleetOps TMS and Last-Mile Operations System",
- "keywords": [
- "delivery management",
- "fleetbase-extension",
- "fleetops",
- "last-mile",
- "tms"
- ],
- "transport-options": {
- "relative": true
- }
+ "time": "2023-10-10T12:35:05+00:00"
},
{
"name": "fleetbase/fleetops-api",
- "version": "1.2.0",
+ "version": "0.2.8",
"source": {
"type": "git",
- "url": "https://github.com/fleetbase/fleetops-api.git",
- "reference": "4313522b4048a556c228ab04e2600fae4c1be858"
+ "url": "https://github.com/fleetbase/fleetops.git",
+ "reference": "8d9e775238158f9f595d54c030cdbf4a763e90ea"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/fleetbase/fleetops-api/zipball/4313522b4048a556c228ab04e2600fae4c1be858",
- "reference": "4313522b4048a556c228ab04e2600fae4c1be858",
+ "url": "https://api.github.com/repos/fleetbase/fleetops/zipball/8d9e775238158f9f595d54c030cdbf4a763e90ea",
+ "reference": "8d9e775238158f9f595d54c030cdbf4a763e90ea",
"shasum": ""
},
"require": {
"barryvdh/laravel-dompdf": "^2.0",
"brick/geo": "0.7.2",
"cknow/laravel-money": "^7.1",
- "fleetbase/core-api": "^1.3.0",
+ "fleetbase/core-api": "^1.3.1",
"geocoder-php/google-maps-places-provider": "^1.4",
"giggsey/libphonenumber-for-php": "^8.13",
"league/geotools": "^1.1.0",
@@ -2226,10 +2120,11 @@
"webit/eval-math": "^1.0"
},
"require-dev": {
- "friendsofphp/php-cs-fixer": "^2.16.4",
- "pestphp/pest": "^0.3.8",
- "phpstan/phpstan": "^0.12.48",
- "symfony/var-dumper": "^5.2.0"
+ "friendsofphp/php-cs-fixer": "^3.34.1",
+ "nunomaduro/collision": "^5.11.0|^6.4.0",
+ "pestphp/pest": "^1.22.6",
+ "phpstan/phpstan": "^1.10.38",
+ "symfony/var-dumper": "^5.4.29"
},
"type": "library",
"extra": {
@@ -2242,7 +2137,7 @@
},
"autoload": {
"psr-4": {
- "Fleetbase\\FleetOps\\": "src/"
+ "Fleetbase\\FleetOps\\": "server/src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -2259,7 +2154,7 @@
"email": "[email protected]"
}
],
- "description": "FleetOps TMS and Last-Mile Operations System",
+ "description": "Fleet & Transport Management Extension for Fleetbase",
"keywords": [
"delivery management",
"fleetbase-extension",
@@ -2268,106 +2163,28 @@
"tms"
],
"support": {
- "issues": "https://github.com/fleetbase/fleetops-api/issues",
- "source": "https://github.com/fleetbase/fleetops-api/tree/v1.2.0"
- },
- "time": "2023-10-06T08:12:02+00:00"
- },
- {
- "name": "fleetbase/flespi-integration",
- "version": "0.0.3",
- "dist": {
- "type": "path",
- "url": "../packages/flespi-integration",
- "reference": "f908174a43dd0bb7afd762798f1c708df2728782"
- },
- "require": {
- "fleetbase/core-api": "^1.3.0",
- "fleetbase/fleetops-api": "^1.2.0",
- "php": "^7.4|^8.0",
- "php-http/guzzle7-adapter": "^1.0",
- "psr/http-factory-implementation": "*",
- "vlucas/phpdotenv": "^5.5"
- },
- "require-dev": {
- "friendsofphp/php-cs-fixer": "^2.16.4",
- "pestphp/pest": "^0.3.8",
- "phpstan/phpstan": "^1.8",
- "symfony/var-dumper": "^5.2.0"
- },
- "type": "library",
- "extra": {
- "laravel": {
- "providers": [
- "Fleetbase\\Flespi\\Providers\\FlespiIntegrationServiceProvider"
- ]
- },
- "fleetbase": {
- "sandbox-migrations": false
- }
- },
- "autoload": {
- "psr-4": {
- "Fleetbase\\Flespi\\": "src/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Fleetbase\\Flespi\\Tests\\": "tests/"
- }
+ "issues": "https://github.com/fleetbase/fleetops/issues",
+ "source": "https://github.com/fleetbase/fleetops/tree/v0.2.8"
},
- "scripts": {
- "lint": [
- "php-cs-fixer fix -v"
- ],
- "test:lint": [
- "php-cs-fixer fix -v --dry-run"
- ],
- "test:types": [
- "phpstan analyse --ansi --memory-limit=0"
- ],
- "test:unit": [
- "pest --colors=always"
- ],
- "test": [
- "@test:lint",
- "@test:types",
- "@test:unit"
- ]
- },
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fleetbase Pte Ltd.",
- "email": "[email protected]"
- },
- {
- "name": "Charley Nguyen",
- "email": "[email protected]"
- }
- ],
- "description": "Flespi Telematics API Integration",
- "keywords": [
- "fleetbase-extension",
- "flespi"
- ],
- "transport-options": {
- "relative": true
- }
+ "time": "2023-10-10T12:52:40+00:00"
},
{
"name": "fleetbase/storefront-api",
- "version": "1.1.2",
+ "version": "0.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/fleetbase/storefront.git",
+ "reference": "cbc8c467f4a1934bbf61b02125e00eb999308659"
+ },
"dist": {
- "type": "path",
- "url": "../packages/storefront-api",
- "reference": "a4930e69bf89d005d1c853cc01dcf0327e5fbe7d"
+ "type": "zip",
+ "url": "https://api.github.com/repos/fleetbase/storefront/zipball/cbc8c467f4a1934bbf61b02125e00eb999308659",
+ "reference": "cbc8c467f4a1934bbf61b02125e00eb999308659",
+ "shasum": ""
},
"require": {
- "fleetbase/core-api": "^1.2.6",
- "fleetbase/fleetops-api": "^1.1.4",
+ "fleetbase/core-api": "^1.3.1",
+ "fleetbase/fleetops-api": "^0.2.8",
"geocoder-php/google-maps-places-provider": "^1.4",
"laravel-notification-channels/apn": "^3.8",
"laravel-notification-channels/fcm": "^2.7",
@@ -2379,10 +2196,11 @@
"toin0u/geocoder-laravel": "^4.4"
},
"require-dev": {
- "friendsofphp/php-cs-fixer": "^2.16.4",
- "pestphp/pest": "^0.3.8",
- "phpstan/phpstan": "^0.12.48",
- "symfony/var-dumper": "^5.2.0"
+ "friendsofphp/php-cs-fixer": "^3.34.1",
+ "nunomaduro/collision": "^5.11.0|^6.4.0",
+ "pestphp/pest": "^1.22.6",
+ "phpstan/phpstan": "^1.10.38",
+ "symfony/var-dumper": "^5.4.29"
},
"type": "library",
"extra": {
@@ -2400,33 +2218,10 @@
},
"autoload": {
"psr-4": {
- "Fleetbase\\Storefront\\": "src/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Fleetbase\\Storefront\\Tests\\": "tests/"
+ "Fleetbase\\Storefront\\": "server/src/"
}
},
- "scripts": {
- "lint": [
- "php-cs-fixer fix -v"
- ],
- "test:lint": [
- "php-cs-fixer fix -v --dry-run"
- ],
- "test:types": [
- "phpstan analyse --ansi --memory-limit=0"
- ],
- "test:unit": [
- "pest --colors=always"
- ],
- "test": [
- "@test:lint",
- "@test:types",
- "@test:unit"
- ]
- },
+ "notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
@@ -2440,7 +2235,7 @@
"email": "[email protected]"
}
],
- "description": "Headless Commerce API for Storefront Fleetbase Extension.",
+ "description": "Headless Commerce & Marketplace Extension for Fleetbase",
"keywords": [
"e-commerce",
"fleetbase-extension",
@@ -2448,9 +2243,11 @@
"marketplace",
"storefront"
],
- "transport-options": {
- "relative": true
- }
+ "support": {
+ "issues": "https://github.com/fleetbase/storefront/issues",
+ "source": "https://github.com/fleetbase/storefront/tree/v0.2.0"
+ },
+ "time": "2023-10-10T13:07:00+00:00"
},
{
"name": "fruitcake/laravel-cors",
@@ -7080,16 +6877,16 @@
},
{
"name": "php-http/discovery",
- "version": "1.19.1",
+ "version": "1.15.3",
"source": {
"type": "git",
"url": "https://github.com/php-http/discovery.git",
- "reference": "57f3de01d32085fea20865f9b16fb0e69347c39e"
+ "reference": "3ccd28dd9fb34b52db946abea1b538568e34eae8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-http/discovery/zipball/57f3de01d32085fea20865f9b16fb0e69347c39e",
- "reference": "57f3de01d32085fea20865f9b16fb0e69347c39e",
+ "url": "https://api.github.com/repos/php-http/discovery/zipball/3ccd28dd9fb34b52db946abea1b538568e34eae8",
+ "reference": "3ccd28dd9fb34b52db946abea1b538568e34eae8",
"shasum": ""
},
"require": {
@@ -7097,8 +6894,7 @@
"php": "^7.1 || ^8.0"
},
"conflict": {
- "nyholm/psr7": "<1.0",
- "zendframework/zend-diactoros": "*"
+ "nyholm/psr7": "<1.0"
},
"provide": {
"php-http/async-client-implementation": "*",
@@ -7123,10 +6919,7 @@
"autoload": {
"psr-4": {
"Http\\Discovery\\": "src/"
- },
- "exclude-from-classmap": [
- "src/Composer/Plugin.php"
- ]
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -7152,9 +6945,9 @@
],
"support": {
"issues": "https://github.com/php-http/discovery/issues",
- "source": "https://github.com/php-http/discovery/tree/1.19.1"
+ "source": "https://github.com/php-http/discovery/tree/1.15.3"
},
- "time": "2023-07-11T07:02:26+00:00"
+ "time": "2023-03-31T14:40:37+00:00"
},
{
"name": "php-http/guzzle7-adapter",
@@ -14313,16 +14106,16 @@
},
{
"name": "doctrine/dbal",
- "version": "3.7.0",
+ "version": "3.7.1",
"source": {
"type": "git",
"url": "https://github.com/doctrine/dbal.git",
- "reference": "00d03067f07482f025d41ab55e4ba0db5eca2cdf"
+ "reference": "5b7bd66c9ff58c04c5474ab85edce442f8081cb2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/doctrine/dbal/zipball/00d03067f07482f025d41ab55e4ba0db5eca2cdf",
- "reference": "00d03067f07482f025d41ab55e4ba0db5eca2cdf",
+ "url": "https://api.github.com/repos/doctrine/dbal/zipball/5b7bd66c9ff58c04c5474ab85edce442f8081cb2",
+ "reference": "5b7bd66c9ff58c04c5474ab85edce442f8081cb2",
"shasum": ""
},
"require": {
@@ -14406,7 +14199,7 @@
],
"support": {
"issues": "https://github.com/doctrine/dbal/issues",
- "source": "https://github.com/doctrine/dbal/tree/3.7.0"
+ "source": "https://github.com/doctrine/dbal/tree/3.7.1"
},
"funding": [
{
@@ -14422,7 +14215,7 @@
"type": "tidelift"
}
],
- "time": "2023-09-26T20:56:55+00:00"
+ "time": "2023-10-06T05:06:20+00:00"
},
{
"name": "doctrine/deprecations",
@@ -16931,6 +16724,82 @@
}
],
"time": "2021-07-28T10:34:58+00:00"
+ },
+ {
+ "name": "zendframework/zend-diactoros",
+ "version": "2.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/zendframework/zend-diactoros.git",
+ "reference": "de5847b068362a88684a55b0dbb40d85986cfa52"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/zendframework/zend-diactoros/zipball/de5847b068362a88684a55b0dbb40d85986cfa52",
+ "reference": "de5847b068362a88684a55b0dbb40d85986cfa52",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1",
+ "psr/http-factory": "^1.0",
+ "psr/http-message": "^1.0"
+ },
+ "provide": {
+ "psr/http-factory-implementation": "1.0",
+ "psr/http-message-implementation": "1.0"
+ },
+ "require-dev": {
+ "ext-curl": "*",
+ "ext-dom": "*",
+ "ext-libxml": "*",
+ "http-interop/http-factory-tests": "^0.5.0",
+ "php-http/psr7-integration-tests": "dev-master",
+ "phpunit/phpunit": "^7.0.2",
+ "zendframework/zend-coding-standard": "~1.0.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.1.x-dev",
+ "dev-develop": "2.2.x-dev",
+ "dev-release-1.8": "1.8.x-dev"
+ }
+ },
+ "autoload": {
+ "files": [
+ "src/functions/create_uploaded_file.php",
+ "src/functions/marshal_headers_from_sapi.php",
+ "src/functions/marshal_method_from_sapi.php",
+ "src/functions/marshal_protocol_version_from_sapi.php",
+ "src/functions/marshal_uri_from_sapi.php",
+ "src/functions/normalize_server.php",
+ "src/functions/normalize_uploaded_files.php",
+ "src/functions/parse_cookie_header.php"
+ ],
+ "psr-4": {
+ "Zend\\Diactoros\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "description": "PSR HTTP Message implementations",
+ "keywords": [
+ "http",
+ "psr",
+ "psr-7"
+ ],
+ "support": {
+ "docs": "https://docs.zendframework.com/zend-diactoros/",
+ "forum": "https://discourse.zendframework.com/c/questions/exprssive",
+ "issues": "https://github.com/zendframework/zend-diactoros/issues",
+ "rss": "https://github.com/zendframework/zend-diactoros/releases.atom",
+ "slack": "https://zendframework-slack.herokuapp.com",
+ "source": "https://github.com/zendframework/zend-diactoros"
+ },
+ "abandoned": "laminas/laminas-diactoros",
+ "time": "2019-11-13T19:16:13+00:00"
}
],
"aliases": [],
diff --git a/console/package.json b/console/package.json
index e423b595..d3f4237a 100644
--- a/console/package.json
+++ b/console/package.json
@@ -29,9 +29,9 @@
"@fleetbase/ember-ui": "^0.2.0",
"@fleetbase/dev-engine": "^0.1.8",
"@fleetbase/iam-engine": "^0.0.6",
- "@fleetbase/fleetops-engine": "^0.2.7",
+ "@fleetbase/fleetops-engine": "^0.2.8",
"@fleetbase/fleetops-data": "^0.1.1",
- "@fleetbase/storefront-engine": "^0.1.9",
+ "@fleetbase/storefront-engine": "^0.2.0",
"@fleetbase/leaflet-routing-machine": "^3.2.16",
"@fortawesome/ember-fontawesome": "^0.4.1",
"ember-intl": "^6.0.0-beta.6",
diff --git a/packages/fleetops b/packages/fleetops
index b280fd44..8d9e7752 160000
--- a/packages/fleetops
+++ b/packages/fleetops
@@ -1 +1 @@
-Subproject commit b280fd440462988cb12dcefbe2ca0455bc77aa2a
+Subproject commit 8d9e775238158f9f595d54c030cdbf4a763e90ea
diff --git a/packages/pallet b/packages/pallet
index 623145d4..ce0cf178 160000
--- a/packages/pallet
+++ b/packages/pallet
@@ -1 +1 @@
-Subproject commit 623145d41f000b5eccc854c614e02a6ec1230cd5
+Subproject commit ce0cf1787f90e79678f0c9516649da59ed8d022e
diff --git a/packages/storefront b/packages/storefront
index 492d5729..cbc8c467 160000
--- a/packages/storefront
+++ b/packages/storefront
@@ -1 +1 @@
-Subproject commit 492d5729cfde24a24427457dade05f84c2d22f05
+Subproject commit cbc8c467f4a1934bbf61b02125e00eb999308659
diff --git a/workflows/README.md b/workflows/README.md
new file mode 100644
index 00000000..6d53b758
--- /dev/null
+++ b/workflows/README.md
@@ -0,0 +1,3 @@
+## CI/CD config files
+
+This folder contains examples of configuration files for different CI/CD systems other than Github Actions.
diff --git a/workflows/gitlab-ci.yml b/workflows/gitlab-ci.yml
new file mode 100644
index 00000000..c3186fb9
--- /dev/null
+++ b/workflows/gitlab-ci.yml
@@ -0,0 +1,69 @@
+image: docker:stable-git
+
+build_image:
+ stage: build
+ tags:
+ - simpledocker
+ script:
+ - mkdir -p /usr/local/lib/docker/cli-plugins && wget -O /usr/local/lib/docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.linux-amd64 && chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx
+ - |-
+ if [[ -n "${GITHUB_AUTH_TOKEN}" ]]; then
+ echo '{"github-oauth": {"github.com": "'${GITHUB_AUTH_TOKEN}'"}}' > composer-auth.json
+ else
+ echo '{}' > composer-auth.json
+ fi
+ - |-
+ set -eu
+
+ docker buildx create --driver docker-container --driver-opt image=moby/buildkit:v0.11.5 --use
+
+ docker buildx bake -f docker-bake.hcl --print # just print for now
+
+deploy:
+ stage: deploy
+ only:
+ - /^deploy\/.*$/
+ tags:
+ - simpledocker
+ script:
+ - mkdir -p /usr/local/lib/docker/cli-plugins && wget -O /usr/local/lib/docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.linux-amd64 && chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx
+ - docker buildx create --driver docker-container --driver-opt image=moby/buildkit:v0.11.5 --use
+ - 'export VERSION="$(git describe --always --tags)"'
+ - 'export STACK="$(basename $CI_COMMIT_REF_NAME)"'
+ - |-
+ if [[ -n "${GITHUB_AUTH_TOKEN}" ]]; then
+ echo '{"github-oauth": {"github.com": "'${GITHUB_AUTH_TOKEN}'"}}' > composer-auth.json
+ else
+ echo '{}' > composer-auth.json
+ fi
+ - |-
+ set -e
+ set -u
+
+ wget https://github.com/springload/ecs-tool/releases/download/1.9.6/ecs-tool_1.9.6_linux_amd64.tar.gz -O - | tar -xzvf - ecs-tool
+ export REGISTRY=$(./ecs-tool ecr-endpoint)/${PROJECT}-${STACK}
+ eval $(./ecs-tool ecr-login)
+
+ docker buildx bake -f docker-bake.hcl --push
+
+ # run deploy.sh script before deployments
+ env "ECS_RUN.SERVICE=app" "ECS_RUN.LAUNCH_TYPE=FARGATE" ./ecs-tool run -l "ecs-tool" --debug --image_tag "{container_name}-${VERSION}" --cluster ${PROJECT}-${STACK} --task_definition ${PROJECT}-${STACK}-app --container_name app ./deploy.sh
+ ./ecs-tool deploy --image_tag "{container_name}-${VERSION}" --cluster ${PROJECT}-${STACK} -s app -s scheduler -s events
+
+ # deploy frontend
+ # get parameters
+ - |-
+ wget -O- https://github.com/springload/ssm-parent/releases/download/1.8.0/ssm-parent_1.8.0_linux_amd64.tar.gz | tar xvzf - ssm-parent
+
+ ./ssm-parent -n /actions/${PROJECT}/${STACK}/configuration dotenv /tmp/dotenv.file
+ # remove double quotes and pipe into the env
+ # that's because Docker doesn't like them
+ sed -i -e 's/"//g' /tmp/dotenv.file
+
+ # build the builder
+ - docker buildx build -t frontend-${STACK}-${VERSION} --load --target builder -f console/Dockerfile .
+ - docker run -i --rm --env-file /tmp/dotenv.file -v "$(pwd)/console_dist:/app/dist" frontend-${STACK}-${VERSION} pnpm build
+ - |-
+ DEPLOY_BUCKET=${PROJECT}-${STACK}
+ wget -O- https://github.com/bep/s3deploy/releases/download/v2.11.0/s3deploy_2.11.0_linux-amd64.tar.gz | tar xzv -f - s3deploy
+ ./s3deploy -region ${AWS_REGION} -source ./console_dist -bucket ${DEPLOY_BUCKET}
\ No newline at end of file