From 5607561c26e4cb93b56a575611ab11e95c940cfe Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Fri, 15 Sep 2023 17:06:11 +0000 Subject: [PATCH] ci: add test Signed-off-by: Ramkumar Chinchani --- .github/workflows/build.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0adc1927..52c18ccf 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -168,16 +168,20 @@ jobs: GO111MODULE=off go get github.com/opencontainers/umoci/cmd/umoci curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin apt-get install -yy autoconf automake make autogen autoconf libtool binutils git squashfs-tools libcryptsetup-dev libdevmapper-dev cryptsetup-bin squashfuse + echo WHOAMI=$(whoami) + # add a non-root user "stacker" adduser --disabled-login --no-create-home --gecos "stacker" stacker - echo WHOAMI=$(whoami) + mkdir /src-copy + cp -R /src/* /src-copy/ + chown -R stacker:stacker /src-copy # execute this as "stacker" user sudo -i -u stacker bash << EOF echo WHOAMI=$(whoami) export PATH=$PATH:/usr/local/go/bin - cd /src + cd /src-copy make go-download make show-info make stacker-dynamic VERSION_FULL=${{ inputs.build-id }}