mirror of
https://github.com/esauflores/toolbox.git
synced 2026-03-09 21:03:59 +00:00
23 lines
419 B
Makefile
23 lines
419 B
Makefile
set shell := ["bash", "-c"]
|
|
|
|
IMAGE := env("IMAGE", "dev-tools")
|
|
VERSION := env("VERSION", "latest")
|
|
|
|
# Setup environment
|
|
setup:
|
|
mise install
|
|
|
|
# Build the Docker image
|
|
build:
|
|
docker build -t {{IMAGE}}:{{VERSION}} .
|
|
|
|
# Tests inside the docker image
|
|
test:
|
|
docker run --rm {{IMAGE}}:{{VERSION}} sh -c "\
|
|
mise --version \
|
|
&& python --version \
|
|
&& node --version"
|
|
|
|
push:
|
|
docker push {{IMAGE}}:{{VERSION}}
|