Skip to content

Commit

Permalink
debug: print env
Browse files Browse the repository at this point in the history
  • Loading branch information
valerius committed Feb 22, 2024
1 parent dc70352 commit 6cc1c51
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/rpi_aarch64_image_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
echo "RPI_HOSTNAME=sz-$(git rev-parse --short HEAD)-rpi${{ env.RPI_MODEL }}" >> $GITHUB_ENV
echo "WORKDIR_BASE=${{ github.workspace }}/run-${{ github.run_id }}" >> $GITHUB_ENV
echo "IMAGE_NAME=${{ env.IMAGE_NAME_PREFIX }}-${{ env.ARM_VERSION }}-rpi${{ env.RPI_MODEL }}_v$(git rev-parse --short HEAD).img" >> $GITHUB_ENV
echo "LOOP_IMAGE_PATH=${{ github.workspace }}/run-${{ github.run_id }}/${{ env.IMAGE_NAME_PREFIX }}-${{ env.ARM_VERSION }}-rpi${{ env.RPI_MODEL }}_v$(git rev-parse --short HEAD).img" >> $GITHUB_ENV
echo "LOOP_IMAGE_PATH=${{ github.workspace }}/run-${{ github.run_id }}/${{ env.IMAGE_NAME_PREFIX }}-${{ env.ARM_VERSION }}-rpi${{ env.RPI_MODEL }}-v$(git rev-parse --short HEAD).img" >> $GITHUB_ENV
echo "DISTRO=$(cat /etc/*-release | grep ^ID= | cut -d'=' -f2)" >> $GITHUB_ENV
echo "ARCH_AARCH64_IMG_URL=http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-${{ env.ARM_VERSION }}-latest.tar.gz" >> $GITHUB_ENV
echo "ARCH_AARCH64_IMG_URL_MD5=http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-${{ env.ARM_VERSION }}-latest.tar.gz.md5" >> $GITHUB_ENV
Expand Down Expand Up @@ -121,7 +121,17 @@ jobs:
ISO_URL=$(curl --silent --show-error --progress-bar --upload-file $LOOP_IMAGE_PATH $TRANSFERSH_URL)
echo "ISO_URL=$ISO_URL" >> $GITHUB_ENV
echo "Uploaded $LOOP_IMAGE_PATH to $ISO_URL"
- name: Save Root Password to File
run: |
echo "$ROOT_PASSWORD" > root_password.txt
- name: Upload Root Password as Artifact
uses: actions/upload-artifact@v2
with:
name: root-password
path: root_password.txt

# create a release
- name: Create Release
if: success()
Expand Down
2 changes: 1 addition & 1 deletion build_archlinux_rpi_aarch64_img.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ICAgIHxfX18vICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAK" | base64 -d
source ./build_config.env

printenv
echo "$WORKDIR_BASE"
echo "here is the workdir - $WORKDIR_BASE"

echo "Setting locale and keymap..."
# Add locales to /etc/locale.gen within the chroot environment
Expand Down

0 comments on commit 6cc1c51

Please sign in to comment.