Debian Trixie DEB package #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Debian Trixie DEB package | |
| on: [workflow_dispatch] | |
| env: | |
| DISTRO: debian-trixie | |
| jobs: | |
| build-deb: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Create docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| tags: image-${{ env.DISTRO }} | |
| context: ./packages/${{ env.DISTRO }} | |
| env: | |
| DOCKER_BUILD_SUMMARY: false | |
| DOCKER_BUILD_RECORD_UPLOAD: false | |
| - name: Build DEB package | |
| uses: addnab/docker-run-action@v3 | |
| with: | |
| image: image-${{ env.DISTRO }} | |
| options: --name container-${{ env.DISTRO }} | |
| run: | | |
| ./build.sh | |
| - name: Copy from container to host | |
| uses: tj-actions/docker-cp@v2 | |
| with: | |
| container: container-${{ env.DISTRO }} | |
| source: /buildroot/output | |
| destination: packages/${{ env.DISTRO }}/ | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.DISTRO }} packages | |
| path: packages/${{ env.DISTRO }}/output | |
| if-no-files-found: error |