File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -168,16 +168,20 @@ jobs:
168
168
GO111MODULE=off go get github.com/opencontainers/umoci/cmd/umoci
169
169
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
170
170
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
+
171
173
# add a non-root user "stacker"
172
174
adduser --disabled-login --no-create-home --gecos "stacker" stacker
173
175
174
- echo WHOAMI=$(whoami)
176
+ mkdir /src-copy
177
+ cp -R /src/* /src-copy/
178
+ chown -R stacker:stacker /src-copy
175
179
176
180
# execute this as "stacker" user
177
181
sudo -i -u stacker bash << EOF
178
182
echo WHOAMI=$(whoami)
179
183
export PATH=$PATH:/usr/local/go/bin
180
- cd /src
184
+ cd /src-copy
181
185
make go-download
182
186
make show-info
183
187
make stacker-dynamic VERSION_FULL=${{ inputs.build-id }}
You can’t perform that action at this time.
0 commit comments