Execute Migrations and Commands after a deployment.
# .github/workflows/deploy-to-live.yml
jobs:
# [...]
init:
uses: avency/gh-workflows/.github/workflows/InitNeos.yml@main
concurrency: deploy-to-live
with:
containername: ${{ secrets.CONTAINERNAME }}
url: https://${{ secrets.PROJECT_DOMAIN_LIVE }}/
exec_clear_cache_warmup: true
exec_migrate_database: true
exec_publish_resource: true
exec_command_migration: false
exec_elasticsearch_index: false
exec_elasticsearch_queue: false
secrets:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.AVENCY_SSH_KEY }}
The name of the appropriate container in which the commands should be executed.
# .github/workflows/deploy-to-live.yml
jobs:
# [...]
init:
uses: avency/gh-workflows/.github/workflows/InitNeosCompose.yml@main
concurrency: deploy-to-live
with:
compose_folder: ${{ inputs.deployment-compose-target }}
compose_service_name: php
compose_service_user: www-data
url: https://${{ secrets.PROJECT_DOMAIN_LIVE }}/
exec_clear_cache_warmup: true
exec_migrate_database: true
exec_publish_resource: true
exec_command_migration: false
exec_elasticsearch_index: false
exec_elasticsearch_queue: false
secrets:
HOST: ${{ secrets.HOST }}
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
SSH_KEY: ${{ secrets.SSH_KEY }}
The folder where the docker compose file is located.
The name of the container (service) in which the commands should be executed.
The name of the user who should execute the commands. (default: www-data)
The inputs are defined under jobs.init.with
.
The url with which the project can be accessed
The cache will be flushed and warmed up.
Executes all doctrine migrations.
Publishes the static resources.
Executes pending command migrations. Requires additional Package
Builds an ElasticSearch Index. Can not be used with exec_elasticsearch_queue
. Requires additional Package
Builds an Elasticsearch Queue Index. Can not be used with exec_elasticsearch_index
. Requires additional Package
The SSH Host name
Username for ssh.
SSH Key
If the host is protected with basic auth then you need to set the username.
The password for the basic auth