This action help you to deploy your code to Cloudify.ro. PRs are welcome.
The openstack client must be installed. For this we need to use actions/setup-python@v1 and BSFishy/pip-action@v1 to install the openstack client.
- name: Setup Python
uses: actions/setup-python@v1
- name: Install Openstack Client
uses: BSFishy/pip-action@v1
with:
packages: python-openstackclient| Name | Requirement | Description |
|---|---|---|
credential_id |
Required | Credential id use for authentication. For generate credentials, see here. |
credential_secret |
Required | Credential secret use for authentication. For generate credentials, see here. |
name |
Required | Name your server. |
keypair_name |
Required | Your SSH Key name from Cloudify.ro account. |
command |
Required | Command for deploy, docker run. |
flavor |
Optional | Flavor for server(See flavors). |
image |
Optional | Choose an image(operating system) from Cloudify.ro, default image is docker-ubuntu-20.04 |
network_id |
Optional | For custom network, default is public network. |
Deploy a wordpress image.
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
- name: Install Openstack Client
uses: BSFishy/pip-action@v1
with:
packages: python-openstackclient
- name: Deploy Container to Cloudify.ro
uses: cloudify-ro/cloudify-deploy@v1
with:
credential_id: ${{ secrets.ID }}
credential_secret: ${{ secrets.SECRET }}
name: server-production-01
keypair_name: user-key
command: docker run --name wordpress-production -p 80:80 -d wordpressThis GitHub Action and associated scripts and documentation in this project are released under the MIT License.