21 lines
394 B
Makefile
21 lines
394 B
Makefile
name := 'git.ficd.sh/ficd/based-alpine'
|
|
|
|
# build the image
|
|
build arg="latest":
|
|
#!/bin/sh
|
|
cd {{arg}}
|
|
docker build -t {{name}}:{{arg}} .
|
|
# push the image
|
|
push arg="latest":
|
|
#!/bin/sh
|
|
cd {{arg}}
|
|
docker push {{name}}:{{arg}}
|
|
# run cmd in image
|
|
run arg="latest":
|
|
#!/bin/sh
|
|
cd {{arg}}
|
|
docker run --rm -it {{name}} bash
|
|
|
|
# login
|
|
login:
|
|
docker login git.ficd.sh
|