Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload DEB build logs. #234

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .github/workflows/ci-deb-packages-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set custom variables
shell: sh
run: |
echo "IMAGE_TAG=${{ inputs.DISTRO_CODENAME }}-${{ inputs.PLATFORM }}" >> $GITHUB_ENV

- name: Build debs in Docker
shell: sh
env:
Expand All @@ -206,18 +211,26 @@ jobs:
-v $(pwd):/root \
-v /tmp/${GITHUB_RUN_ID}/run.sh:/usr/local/bin/run.sh:ro \
-e GENERIC_TOKEN="${GENERIC_TOKEN}" \
${{ inputs.BASE_IMAGE }}:${{ inputs.DISTRO_CODENAME }}
${{ inputs.BASE_IMAGE }}:${{ inputs.DISTRO_CODENAME }} 2>&1 | \
tee deb-${{ env.IMAGE_TAG }}-build.log

- name: Set custom variables
shell: sh
run: |
echo "IMAGE_TAG=${{ inputs.DISTRO_CODENAME }}-${{ inputs.PLATFORM }}" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: deb-${{ env.IMAGE_TAG }}-build-log-artifact
path: |
deb-*-build.log
if-no-files-found: warn

- name: Copy git hash
shell: sh
env:
GITHUB_SHA: ${{ github.sha }}
run: |
if [ $(find . -maxdepth 1 -type f -name "*.deb" | wc -l) -eq 0 ]; then
echo "No .deb files were found in the current directory."
exit 1
fi

echo $GITHUB_SHA > hash.txt

- name: Compress files
Expand Down