Add a deploy command [skip ci]

This commit is contained in:
Oliver Davies 2021-07-13 08:32:55 +01:00
parent 9a2ecf796a
commit 50571a1210

View file

@ -8,6 +8,13 @@ attribute('docker'):
username: "= env('DOCKER_REGISTRY_USERNAME') ?: ''"
repository: ghcr.io/opdavies/oliverdavies-uk-web
command('deploy'):
env:
COMPOSE_PROJECT_NAME: = @('namespace')
exec: |
#!bash(workspace:/tools/deployment)
passthru ansible-playbook deploy.yml
command('disable'):
env:
COMPOSE_PROJECT_NAME: = @('namespace')