include: '/templates/microservice.yaml' stages: - build - deploy - migration migration-dev: stage: migration image: dtzar/helm-kubectl:latest tags: - docker only: - master script: - sleep 30 - kubectl exec deploy/$CI_PROJECT_TITLE -n $NAMESPACE -- alembic upgrade head