1
0
the-tale-card-automation/Taskfile.yml

29 lines
481 B
YAML

# https://taskfile.dev
version: '3'
env: {}
dotenv:
- '.env'
vars:
DOCKER_IMAGE: 'the-tale-ca-php'
DOCKER_RUN: 'docker run -it --rm -u 1000:1000 -v ${PWD}:/app -w /app {{.DOCKER_IMAGE}}'
tasks:
build-docker-image:
cmds:
- docker build -t "{{.DOCKER_IMAGE}}" .
run-shell:
cmds:
- '{{.DOCKER_RUN}} bash'
format:
cmds:
- '{{.DOCKER_RUN}} php-cs-fixer fix'
exchange:
cmds:
- '{{.DOCKER_RUN}} php console.php cards:exchange'