From e0ae12263ce9ef4c45e1b5f5474598504e8b0b40 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Fri, 15 Sep 2023 04:23:04 +0000 Subject: [PATCH] fix: remove docker arg Signed-off-by: Ramkumar Chinchani --- .github/workflows/build.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 64c9044f..0adc1927 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -147,7 +147,7 @@ jobs: # a GitHub package registry. githubToken: ${{ github.token }} - dockerRunArgs: -v $GITHUB_WORKSPACE:/src --cgroupns=host + dockerRunArgs: -v $GITHUB_WORKSPACE:/src # Set an output parameter `uname` for use in subsequent steps run: | @@ -164,16 +164,25 @@ jobs: export GOPATH=/src add-apt-repository -y ppa:project-machine/squashfuse apt-get update - apt-get install -yy lxc-utils lxc-dev libacl1-dev jq libcap-dev libseccomp-dev libpam-dev bats parallel libzstd-dev + apt-get install -yy lxc-utils lxc-dev libacl1-dev jq libcap-dev libseccomp-dev libpam-dev bats parallel libzstd-dev sudo 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 + # add a non-root user "stacker" + adduser --disabled-login --no-create-home --gecos "stacker" stacker + + echo WHOAMI=$(whoami) + + # execute this as "stacker" user + sudo -i -u stacker bash << EOF + echo WHOAMI=$(whoami) export PATH=$PATH:/usr/local/go/bin cd /src make go-download make show-info make stacker-dynamic VERSION_FULL=${{ inputs.build-id }} make stacker VERSION_FULL=${{ inputs.build-id }} STACKER_BUILD_BASE_IMAGE=${{ env.BASE_IMAGE }} + EOF - name: Get the output # Echo the `uname` output parameter from the `runcmd` step run: |