Skip to content

Commit

Permalink
DO NOT LAND
Browse files Browse the repository at this point in the history
Add debug to see how real GH compares to act.

Skip-PR-comments: true
Run-GHA: true

Required-githooks: true

Signed-off-by: Brian J. Murrell <[email protected]>
  • Loading branch information
brianjmurrell committed Jul 15, 2024
1 parent fb10e07 commit d5ba0ba
Showing 1 changed file with 36 additions and 4 deletions.
40 changes: 36 additions & 4 deletions .github/workflows/rpm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,21 @@ jobs:
message: ${{ steps.commit_message.outputs.text }}
dequoted-message: ${{ steps.dequoted_commit_message.outputs.text }}
steps:
- name: Debug
run: |
set -x
exec 2>&1
id
env | sort
pwd
ls -l
ls -l /run/ || true
ls -l /run/user/ || true
ls -l /run/user/1001/ || true
ls -l /run/user/1001/podman/ || true
ls -l /var/ || true
ls -l /var/run/ || true
ls -l /var/run/docker.sock || true
- name: Checkout code
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -323,15 +338,32 @@ jobs:
rm -rf mock_result
mkdir -p mock_result
script="echo \"In docker I am \$(id)\"
rm -rf artifacts/$TARGET/
mkdir -p artifacts/$TARGET/
make chrootbuild"
if ! rm -rf artifacts/$TARGET/ ||
! mkdir -p artifacts/$TARGET/; then
echo \"Failed to create artifacts/$TARGET/\"
echo \"I am \$(id)\"
pwd
ls -ld .
ls -l .
exit 1
fi
id
id build
make CHROOT_NAME=\"$CHROOT_NAME\"
DISTRO_VERSION=\"$DISTRO_VERSION\" chrootbuild"
if [ -e ci/rpm/build.sh ]; then
script="ci/rpm/build.sh"
fi
echo "$script"
echo "I am $(id)"
docker run --name mock-build-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.distro }} \
echo "build is $(id build)"
if [ -z "${{ github.run_attempt }}" ] ||
[ "${{ github.run_attempt }}" = '""' ]; then
unique="$RANDOM"
else
unique="${{ github.run_id }}-${{ github.run_attempt }}"
fi
docker run --name mock-build-"$unique"-${{ matrix.distro }} \
--user build \
-v "$PWD":"$PWD" -w "$PWD" \
-v "$PWD"/mock_result:/var/lib/mock/$CHROOT_NAME/result \
Expand Down

0 comments on commit d5ba0ba

Please sign in to comment.