make things work w/ sudo
This commit is contained in:
parent
06afe5f0d2
commit
9bbbaeaed0
@ -19,11 +19,11 @@ tasks:
|
|||||||
# build the image using the just recipe
|
# build the image using the just recipe
|
||||||
- build: |
|
- build: |
|
||||||
cd alpine-cli
|
cd alpine-cli
|
||||||
just build
|
sudo -E just build
|
||||||
|
|
||||||
# set environment variables from the ~/.envdir directory
|
# set environment variables from the ~/.envdir directory
|
||||||
# see http://smarden.org/runit/chpst.8.html for details on chpst
|
# see http://smarden.org/runit/chpst.8.html for details on chpst
|
||||||
# publish the image using the just recipe
|
# publish the image using the just recipe
|
||||||
- publish: |
|
- publish: |
|
||||||
cd alpine-cli
|
cd alpine-cli
|
||||||
chpst -e ~/.envdir just publish
|
chpst -e ~/.envdir sudo -E just publish
|
||||||
|
|||||||
8
justfile
8
justfile
@ -26,11 +26,11 @@ clean:
|
|||||||
|
|
||||||
# build a new image
|
# build a new image
|
||||||
build:
|
build:
|
||||||
sudo podman build -t {{image}} -f Dockerfile ./ctx
|
podman build -t {{image}} -f Dockerfile ./ctx
|
||||||
|
|
||||||
# publish the image
|
# publish the image
|
||||||
publish:
|
publish:
|
||||||
@ echo $GH_PAT | sudo docker login ghcr.io -u jswank --password-stdin >/dev/null 2>&1
|
@ echo $GH_PAT | podman login ghcr.io -u jswank --password-stdin >/dev/null 2>&1
|
||||||
sudo docker push {{image}}
|
podman push {{image}}
|
||||||
@ sudo docker logout ghcr.io
|
@ podman logout ghcr.io
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user