-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Elao - App] Generate ssh targets from release hosts #134
base: main
Are you sure you want to change the base?
Conversation
7902319
to
baff80d
Compare
Problem: releases:
# Production
- &release
mode: production
ref: master
deploy_hosts:
- ssh_host: app-01.foobar.prod.elao.run
- << : *release
mode: production
ref: preprod
deploy_hosts:
- ssh_host: app-01.foobar.preprod.elao.run will generate: ## Ssh to production server
ssh@production: SHELL := $(or $(DOCKER_SHELL),$(SHELL))
ssh@production:
ssh app-01.foobar.prod.elao.run
## Ssh to production server
ssh@production: SHELL := $(or $(DOCKER_SHELL),$(SHELL))
ssh@production:
ssh app-01.foobar.preprod.elao.run Maybe we should name releases like this: releases:
# Production
production: &release
mode: production
ref: master
deploy_hosts:
- ssh_host: app-01.foobar.prod.elao.run
preprod:
<< : *release
mode: production
ref: preprod
deploy_hosts:
- ssh_host: app-01.foobar.preprod.elao.run |
@nervo Du coup le problème se pose également sur les On s'en est bien accommodé jusque là. Donc on peut garder la PR telle quelle je pense. Ça posera pas plus de soucis que ce qui existe déjà. |
@maximecolin : Un soucis avec la proposition: releases:
# Production
production: &release
mode: production
ref: master
deploy_hosts:
- ssh_host: app-01.foobar.prod.elao.run
preprod:
<< : *release
mode: production
ref: preprod
deploy_hosts:
- ssh_host: app-01.foobar.preprod.elao.run C'est que tu peux avoir plusieurs apps à release/deploy dans un mm projet en production: releases:
- &release_api
app: api
mode: production
deploy_hosts:
- ssh_host: app-01.foobar.prod.elao.run
deploy_dir: /srv/app/api
- &release_admin
app: admin
mode: production
deploy_hosts:
- ssh_host: app-01.foobar.prod.elao.run
deploy_dir: /srv/app/admin Donc si ta clé doit représenter ta cible de déploiement, ça ne fonctionne pas. Quel est le cas d'usage de: - << : *release
mode: production
ref: preprod
deploy_hosts:
- ssh_host: app-01.foobar.preprod.elao.run vs: - << : *release
mode: preprod
deploy_hosts:
- ssh_host: app-01.foobar.preprod.elao.run au juste ? |
QUID de cette PR ? |
il faudrait reprendre à tête reposée :) |
In
.manala.yaml
file (same existing deploy config):will generate in
Makefile
: