Skip to content

Commit 333a6fc

Browse files
committed
Replace asset-tag in the composer archive step (fixes: #1869)
1 parent 0b2418e commit 333a6fc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
],
7575
"post-update-cmd": [
7676
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters"
77+
],
78+
"pre-archive-cmd": [
79+
"bash -c 'if [ -z \"${ASSET_TAG}\" ]; then export ASSET_TAG=$(tr -dc A-Za-z0-9 < /dev/urandom | head -c 16); echo \"ASSET_TAG not set, using random value: ${ASSET_TAG}\"; fi; sed -i -e s,#ASSET_VERSION#,${ASSET_TAG},g ./app/config/config.yml'"
7780
]
7881
},
7982
"autoload": {

0 commit comments

Comments
 (0)