From 9bbbaeaed0ea2bdf519d17242ff91f98ac4ea926 Mon Sep 17 00:00:00 2001 From: Jason Swank Date: Wed, 1 Mar 2023 10:02:44 -0500 Subject: [PATCH] make things work w/ sudo --- .build.yml | 4 ++-- justfile | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.build.yml b/.build.yml index 221f87d..b381ed9 100644 --- a/.build.yml +++ b/.build.yml @@ -19,11 +19,11 @@ tasks: # build the image using the just recipe - build: | cd alpine-cli - just build + sudo -E just build # set environment variables from the ~/.envdir directory # see http://smarden.org/runit/chpst.8.html for details on chpst # publish the image using the just recipe - publish: | cd alpine-cli - chpst -e ~/.envdir just publish + chpst -e ~/.envdir sudo -E just publish diff --git a/justfile b/justfile index 5da0c65..88f4e12 100644 --- a/justfile +++ b/justfile @@ -26,11 +26,11 @@ clean: # build a new image build: - sudo podman build -t {{image}} -f Dockerfile ./ctx + podman build -t {{image}} -f Dockerfile ./ctx # publish the image publish: - @ echo $GH_PAT | sudo docker login ghcr.io -u jswank --password-stdin >/dev/null 2>&1 - sudo docker push {{image}} - @ sudo docker logout ghcr.io + @ echo $GH_PAT | podman login ghcr.io -u jswank --password-stdin >/dev/null 2>&1 + podman push {{image}} + @ podman logout ghcr.io