Skip to content

Commit 5607561

Browse files
committed
ci: add test
Signed-off-by: Ramkumar Chinchani <[email protected]>
1 parent e0ae122 commit 5607561

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,20 @@ jobs:
168168
GO111MODULE=off go get github.com/opencontainers/umoci/cmd/umoci
169169
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
170170
apt-get install -yy autoconf automake make autogen autoconf libtool binutils git squashfs-tools libcryptsetup-dev libdevmapper-dev cryptsetup-bin squashfuse
171+
echo WHOAMI=$(whoami)
172+
171173
# add a non-root user "stacker"
172174
adduser --disabled-login --no-create-home --gecos "stacker" stacker
173175
174-
echo WHOAMI=$(whoami)
176+
mkdir /src-copy
177+
cp -R /src/* /src-copy/
178+
chown -R stacker:stacker /src-copy
175179
176180
# execute this as "stacker" user
177181
sudo -i -u stacker bash << EOF
178182
echo WHOAMI=$(whoami)
179183
export PATH=$PATH:/usr/local/go/bin
180-
cd /src
184+
cd /src-copy
181185
make go-download
182186
make show-info
183187
make stacker-dynamic VERSION_FULL=${{ inputs.build-id }}

0 commit comments

Comments
 (0)