Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axelerant/pushtoplatformsh
Scripts to push your project to platform.sh
https://github.com/axelerant/pushtoplatformsh
Last synced: 3 days ago
JSON representation
Scripts to push your project to platform.sh
- Host: GitHub
- URL: https://github.com/axelerant/pushtoplatformsh
- Owner: axelerant
- Created: 2017-05-19T13:52:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-19T18:13:12.000Z (over 7 years ago)
- Last Synced: 2024-11-09T23:25:07.642Z (about 2 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 2
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The code in this repository can be used to push a drupal project to platform.sh. The script is configured for usage with gitlab-ci and can be used along with https://github.com/axelerant/docker-platformshcli to allow for execution using autoscalable gitlab runners. However you can change the script to suite your own CI/CD server's variable naming conventions.
# Usage
- Copy the content of this repository to your drupal project's root directory.
- Add a .platform.app.yml, .platform/routes.yaml and .platform/services.yaml to your drupal project's root directory.
- Create your own gitlab-ci.yml file with content similar to following -
```
image: XXXX/platformshcli
deploy:
variables:
PLATFORM_PROJECT_ID: "XXXXXXX"
PF_PARENT_ENV: "master"
ALLOW_MASTER: '1'
script:
- chmod +x ./scripts/push-platform.sh
- script -q -c "./scripts/push-platform.sh"
tags:
- autoscaler
```
Make sure that you've built and pushed the docker image using the code available at https://github.com/axelerant/docker-platformshcli before you decide to use this.
- Commit the code to your gitlab repository.