Skip to content

Commit

Permalink
ci: add test
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
  • Loading branch information
rchincha committed Sep 27, 2023
1 parent 7ac18f1 commit b301dbc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit b301dbc

Please sign in to comment.