Skip to content

Commit

Permalink
fix: remove docker arg
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Sep 15, 2023
1 parent 83cf5d6 commit e0ae122
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand Down

0 comments on commit e0ae122

Please sign in to comment.