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 inputs are defined under jobs.init.with
.
The name of the appropriate container in which the commands should be executed.
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