Readme file update
This commit is contained in:
37
ReadMe.md
37
ReadMe.md
@@ -9,16 +9,41 @@ For local install only
|
|||||||
- Template\SmartyExtended
|
- Template\SmartyExtended
|
||||||
- Admin\EditBase
|
- Admin\EditBase
|
||||||
|
|
||||||
## Setup from central composer
|
## Publish to gitea or gitlab server
|
||||||
|
|
||||||
Setup from gitea internal servers
|
Currently there are only gitea and gitlab supported, github does not have support for composer packages
|
||||||
|
|
||||||
```sh
|
`publish\publish.sh go` will run the publish script
|
||||||
composer config repositories.git.egplusww.jp.Composer composer https://git.egplusww.jp/api/packages/Composer/composer
|
|
||||||
|
All the configuration is done in the `publish\.env.deploy` file
|
||||||
|
|
||||||
|
```ini
|
||||||
|
# downlaod file name is "Repository name" "-" "version" where
|
||||||
|
# version is "vN.N.N"
|
||||||
|
GITEA_PUBLISH=1
|
||||||
|
GITEA_UPLOAD_FILENAME="Upload-File-Name";
|
||||||
|
GITEA_USER=gitea-user
|
||||||
|
GITEA_TOKEN=gitea-tokek
|
||||||
|
GITEA_URL_DL=https://[gitea.hostname]/[to/package/folder]/archive
|
||||||
|
GITEA_URL_PUSH=https://[gitea.hostname]/api/packages/[organization]/composer
|
||||||
|
|
||||||
|
GITLAB_PUBLISH=1
|
||||||
|
GITLAB_URL=gitlab URl to repository
|
||||||
|
GITLAB_DEPLOY_TOKEN=gitlab-token
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternative setup composer local zip file repot:
|
At the moment there is only one gitea or gitlab target setable
|
||||||
`composer config repositories.composer.egplusww.jp composer http://composer.egplusww.jp`
|
|
||||||
|
## Setup from central composer
|
||||||
|
|
||||||
|
Setup from gitea servers
|
||||||
|
|
||||||
|
[hostname] is the hostname for your gitea server (or wherever this is published)
|
||||||
|
[OrgName] is the organization name where the composer packages are hosted
|
||||||
|
|
||||||
|
```sh
|
||||||
|
composer config repositories.[hostname].Composer composer https://[hostname]/api/packages/[OrgName]/composer
|
||||||
|
```
|
||||||
|
|
||||||
## Install package
|
## Install package
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ if [ ! -z "${GITLAB_PUBLISH}" ]; then
|
|||||||
"${GITLAB_URL}";
|
"${GITLAB_URL}";
|
||||||
echo "${VERSION}" > "${file_last_published}";
|
echo "${VERSION}" > "${file_last_published}";
|
||||||
else
|
else
|
||||||
echo "Missing GITLAB_DEPLOY_TOKEN environment variable";
|
echo "Missing GITLAB_URL or GITLAB_DEPLOY_TOKEN environment variable";
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
echo "";
|
echo "";
|
||||||
|
|||||||
Reference in New Issue
Block a user