push
This commit is contained in:
parent
8f8c1f7be6
commit
87bc863c6a
3 changed files with 33 additions and 2 deletions
10
justfile
10
justfile
|
@ -2,10 +2,16 @@ 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="sh":
|
||||
docker run --rm -it {{name}} {{arg}}
|
||||
run arg="latest":
|
||||
#!/bin/sh
|
||||
cd {{arg}}
|
||||
docker run --rm -it {{name}} bash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue