This commit is contained in:
1 parent
3e37a88726
commit
2ff1038cd0
2 files changed
+2
-2
No files matched your search
@@ -309,7 +309,7 @@ jobs:
|
|||||||
OUTER_DIGEST=$(
|
OUTER_DIGEST=$(
|
||||||
skopeo inspect \
|
skopeo inspect \
|
||||||
--creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \
|
--creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \
|
||||||
"docker://${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}" \
|
"docker://${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}" \
|
||||||
| jq -r .Digest
|
| jq -r .Digest
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ sudoif command *args:
|
|||||||
function sudoif(){
|
function sudoif(){
|
||||||
if [[ "${UID}" -eq 0 ]]; then
|
if [[ "${UID}" -eq 0 ]]; then
|
||||||
"$@"
|
"$@"
|
||||||
elif [[ "$(command -v sudo)" && -n "${SSH_ASKPASS:-}" ]] && [[ -n "${DISPLAY:-}" || -n "${WAYLAND_DISPLAY:-}" ]]; then
|
elif [[ "$(command -v sudo)" && -n "${SUDO_ASKPASS:-}" ]] && [[ -n "${DISPLAY:-}" || -n "${WAYLAND_DISPLAY:-}" ]]; then
|
||||||
/usr/bin/sudo --askpass "$@" || exit 1
|
/usr/bin/sudo --askpass "$@" || exit 1
|
||||||
elif [[ "$(command -v sudo)" ]]; then
|
elif [[ "$(command -v sudo)" ]]; then
|
||||||
/usr/bin/sudo "$@" || exit 1
|
/usr/bin/sudo "$@" || exit 1
|
||||||
|
|||||||
Reference in new issue
Block a user