From 06b9a8149fc84fecaea420cfecde0f797a23bc51 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Mon, 5 Feb 2024 15:18:20 +0100 Subject: [PATCH 01/21] ci: sign deb files --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df423fb2..34e79d8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,6 +46,10 @@ jobs: run: | apt update && apt install -y unzip dpkg-dev git + - name: Import GPG Key + run: | + echo "${{ secrets.GPG_SIGNING_KEY }}" | gpg --import + - name: Checkout repo uses: actions/checkout@v3 @@ -116,6 +120,9 @@ jobs: mkdir -p ./debian/pool/main/${{ env.PROJECT }} mv ${BUILD_NAME}.deb ./debian/pool/main/${{ env.PROJECT }}/ + # Sign the .deb file + dpkg-sig --sign builder ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb + # Remove the temporary folders rm -rf ${BUILD_NAME} From fcf8fd7e4a274adb0fd44b3ef8b599932973faed Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Mon, 5 Feb 2024 15:28:08 +0100 Subject: [PATCH 02/21] add public key --- .github/workflows/build.yml | 3 +-- debian/gpg | Bin 0 -> 2264 bytes 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 debian/gpg diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 34e79d8a..8beb8404 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,7 +48,7 @@ jobs: - name: Import GPG Key run: | - echo "${{ secrets.GPG_SIGNING_KEY }}" | gpg --import + echo "${{ secrets.GPG_SIGNING_KEY }}" | base64 --decode | gpg --import - name: Checkout repo uses: actions/checkout@v3 @@ -62,7 +62,6 @@ jobs: run_id: ${{ env.WORKFLOW_ID }} workflow_conclusion: success - - name: Build .deb Package shell: bash run: | diff --git a/debian/gpg b/debian/gpg new file mode 100644 index 0000000000000000000000000000000000000000..d4a133d46891e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!Y3ydRF{jKE0GOOTbMxfBct`i)6NoJL+!IFGC>nQIu2~CUOJ| zKYxfP7_xbR zu)d!TDI4N+Ah)P8T}M2fEd+&j6#_^aa0r7x54*UkmjcEf%6CUENp&m0NEW%N3ZKNJ z;{KsFy#;TLBrH>vkSk?O!4zR*d`LJ}?#(|^<2GZ)zJkFAX=*=auuY2cIPBA6cktM@ zX1wVgkL994E<0}2Sq=EsNW&?(3!@pRMp3^-mFD^e2vM44heO`m&vS;C3Qgjeq9tB1tab%$}&Ilh1R`z=|lF)&eq2s<;m94`rk>>_}gd7gPcDoyoCr}>6vmP+o1*j m%i}V>Ddv`BkVA2=F4z98a83*JL2hKukK&*?#9PWl_eU+^#W`#M literal 0 HcmV?d00001 From 0c445cb2341c6a581d741d8c0446ec605c7baaff Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Mon, 5 Feb 2024 15:35:23 +0100 Subject: [PATCH 03/21] ci: install dpkgs-sig --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8beb8404..736d72d6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: - name: Install dependencies run: | - apt update && apt install -y unzip dpkg-dev git + apt update && apt install -y unzip dpkg-dev git dpkg-sig - name: Import GPG Key run: | From 98eae8acbba89852b4ccaaba09b1706dac0c4609 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Mon, 5 Feb 2024 15:41:34 +0100 Subject: [PATCH 04/21] ci: use gpg directly for signing --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 736d72d6..5ba7750f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: - name: Install dependencies run: | - apt update && apt install -y unzip dpkg-dev git dpkg-sig + apt update && apt install -y unzip dpkg-dev git - name: Import GPG Key run: | @@ -120,7 +120,7 @@ jobs: mv ${BUILD_NAME}.deb ./debian/pool/main/${{ env.PROJECT }}/ # Sign the .deb file - dpkg-sig --sign builder ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb + gpg --armor --detach-sign --output ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb.sig ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb # Remove the temporary folders rm -rf ${BUILD_NAME} From ddf1624f71b1d3b170a1907073e2715bf463a03d Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Mon, 5 Feb 2024 16:22:49 +0100 Subject: [PATCH 05/21] ci: update readme --- .github/workflows/build.yml | 6 ++++++ README.md | 3 ++- debian/gpg | Bin 2264 -> 3146 bytes 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ba7750f..c2bdc4b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -133,6 +133,12 @@ jobs: # Delete artifacts folder rm -rf ./artifacts + # Create the Release file + apt-ftparchive release debian/dists/stable > debian/dists/stable/Release + + # Sign the Release file + gpg --armor --detach-sign --output debian/dists/stable/Release.gpg debian/dists/stable/Release + - name: Create Pull Request uses: peter-evans/create-pull-request@v5 with: diff --git a/README.md b/README.md index 0eaa2039..283fa1d8 100644 --- a/README.md +++ b/README.md @@ -11,5 +11,6 @@ The following packages are supported Simply add this repo to your sources by running the following command ```bash -echo "deb [trusted=yes] https://linux.sia.tech/debian stable main" | sudo tee -a /etc/apt/sources.list.d/siafoundation.list +sudo curl -fsSL https://linux.sia.tech/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/siafoundation.gpg +echo "deb [signed-by=/usr/share/keyrings/siafoundation.gpg] https://linux.sia.tech/debian stable main" | sudo tee -a /etc/apt/sources.list.d/siafoundation.list ``` diff --git a/debian/gpg b/debian/gpg index d4a133d46891e3f78a077f6caa7eab4832806460..9055821d6975b0c915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21] ci: install apt-utils --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2bdc4b9..16c64732 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: - name: Install dependencies run: | - apt update && apt install -y unzip dpkg-dev git + apt update && apt install -y unzip dpkg-dev git apt-utils - name: Import GPG Key run: | From 0527e134341c4fbaabfe76d644ba8647e31d27ac Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Mon, 5 Feb 2024 16:39:33 +0100 Subject: [PATCH 07/21] ci: extend release file --- .github/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16c64732..3fa76b8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -134,7 +134,15 @@ jobs: rm -rf ./artifacts # Create the Release file - apt-ftparchive release debian/dists/stable > debian/dists/stable/Release + echo "Origin: Sia Foundation" > debian/dists/stable/Release + echo "Label: Sia Foundation Debian Repository" >> debian/dists/stable/Release + echo "Suite: stable" >> debian/dists/stable/Release + echo "Codename: stable" >> debian/dists/stable/Release + echo "Version: 1.0" >> debian/dists/stable/Release + echo "Architectures: amd64 arm64" >> debian/dists/stable/Release + echo "Components: main" >> debian/dists/stable/Release + echo "Description: Sia Foundation Debian Repository" >> debian/dists/stable/Release + apt-ftparchive release debian/dists/stable >> debian/dists/stable/Release # Sign the Release file gpg --armor --detach-sign --output debian/dists/stable/Release.gpg debian/dists/stable/Release From 3cc3ae7779d493949aea321c96c6cd6c4a784230 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Mon, 5 Feb 2024 17:31:04 +0100 Subject: [PATCH 08/21] ci: run dpkg-scanpackages from root --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3fa76b8d..d93c1e9a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -127,7 +127,9 @@ jobs: # Update the Packages file mkdir -p debian/dists/stable/main/binary-${arch} - dpkg-scanpackages ./debian/pool/main/ | gzip -c > debian/dists/stable/main/binary-${arch}/Packages.gz + cd debian + dpkg-scanpackages ./pool/main/ | gzip -c > dists/stable/main/binary-${arch}/Packages.gz + cd .. done # Delete artifacts folder From 7052cd91f0372e075461ba429f45373b22b7be6a Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Mon, 5 Feb 2024 17:34:01 +0100 Subject: [PATCH 09/21] ci: delete sig files before signing --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d93c1e9a..90a3c479 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -120,6 +120,7 @@ jobs: mv ${BUILD_NAME}.deb ./debian/pool/main/${{ env.PROJECT }}/ # Sign the .deb file + rm -f ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb.sig gpg --armor --detach-sign --output ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb.sig ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb # Remove the temporary folders @@ -128,8 +129,8 @@ jobs: # Update the Packages file mkdir -p debian/dists/stable/main/binary-${arch} cd debian - dpkg-scanpackages ./pool/main/ | gzip -c > dists/stable/main/binary-${arch}/Packages.gz - cd .. + dpkg-scanpackages . | gzip -c > dists/stable/main/binary-${arch}/Packages.gz + cd ../ done # Delete artifacts folder @@ -147,6 +148,7 @@ jobs: apt-ftparchive release debian/dists/stable >> debian/dists/stable/Release # Sign the Release file + rm -f debian/dists/stable/Release.gpg gpg --armor --detach-sign --output debian/dists/stable/Release.gpg debian/dists/stable/Release - name: Create Pull Request From 641393276f7698e8107d6ae543b7ae81a208eaca Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 6 Feb 2024 09:15:12 +0100 Subject: [PATCH 10/21] ci: run apt-ftparchive from root --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 90a3c479..75e58c1b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -129,7 +129,7 @@ jobs: # Update the Packages file mkdir -p debian/dists/stable/main/binary-${arch} cd debian - dpkg-scanpackages . | gzip -c > dists/stable/main/binary-${arch}/Packages.gz + dpkg-scanpackages pool/main/ | gzip -c > dists/stable/main/binary-${arch}/Packages.gz cd ../ done @@ -145,7 +145,7 @@ jobs: echo "Architectures: amd64 arm64" >> debian/dists/stable/Release echo "Components: main" >> debian/dists/stable/Release echo "Description: Sia Foundation Debian Repository" >> debian/dists/stable/Release - apt-ftparchive release debian/dists/stable >> debian/dists/stable/Release + apt-ftparchive -o APT::FTPArchive::Release::BasePath=debian release debian/dists/stable >> debian/dists/stable/Release # Sign the Release file rm -f debian/dists/stable/Release.gpg From f5cd45a8e435259324d07dae6b62e9e33b3e27bb Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 6 Feb 2024 10:50:45 +0100 Subject: [PATCH 11/21] ci: use config file for apt-ftparchive --- .github/workflows/build.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 75e58c1b..4027c6b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -136,16 +136,20 @@ jobs: # Delete artifacts folder rm -rf ./artifacts + # Create a config file for apt-ftparchive + echo "APT::FTPArchive::Release::Origin \"Sia Foundation\";" > ./release.conf + echo "APT::FTPArchive::Release::Label \"Sia Foundation Debian Repository\";" >> ./release.conf + echo "APT::FTPArchive::Release::Suite \"stable\";" >> ./release.conf + echo "APT::FTPArchive::Release::Codename \"stable\";" >> ./release.conf + echo "APT::FTPArchive::Release::Version \"1.0\";" >> ./release.conf + echo "APT::FTPArchive::Release::Architectures \"amd64 arm64\";" >> ./release.conf + echo "APT::FTPArchive::Release::Components \"main\";" >> ./release.conf + echo "APT::FTPArchive::Release::Description \"Sia Foundation Debian Repository\";" >> ./release.conf + echo "APT::FTPArchive::Release::BasePath \"debian\";" >> ./release.conf + # Create the Release file - echo "Origin: Sia Foundation" > debian/dists/stable/Release - echo "Label: Sia Foundation Debian Repository" >> debian/dists/stable/Release - echo "Suite: stable" >> debian/dists/stable/Release - echo "Codename: stable" >> debian/dists/stable/Release - echo "Version: 1.0" >> debian/dists/stable/Release - echo "Architectures: amd64 arm64" >> debian/dists/stable/Release - echo "Components: main" >> debian/dists/stable/Release - echo "Description: Sia Foundation Debian Repository" >> debian/dists/stable/Release - apt-ftparchive -o APT::FTPArchive::Release::BasePath=debian release debian/dists/stable >> debian/dists/stable/Release + apt-ftparchive -c release.conf release debian/ > debian/dists/stable/Release + rm release.conf # Sign the Release file rm -f debian/dists/stable/Release.gpg From d24b009c8123c837ec81116d151a715a18b426b1 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 6 Feb 2024 11:38:07 +0100 Subject: [PATCH 12/21] ci: use reprepro --- .github/workflows/build.yml | 162 +++++++++++++++++------------------- 1 file changed, 77 insertions(+), 85 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4027c6b6..13c8c3ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: - name: Install dependencies run: | - apt update && apt install -y unzip dpkg-dev git apt-utils + apt update && apt install -y unzip dpkg-dev git reprepro - name: Import GPG Key run: | @@ -61,99 +61,91 @@ jobs: repo: SiaFoundation/${{ env.PROJECT }} run_id: ${{ env.WORKFLOW_ID }} workflow_conclusion: success - - - name: Build .deb Package + + - name: Prepare repository with reprepro + run: | + mkdir -p conf + echo "Codename: stable" > conf/distributions + echo "Architectures: amd64 arm64 source" >> conf/distributions + echo "Components: main" >> conf/distributions + echo "Description: $DESCRIPTION" >> conf/distributions + echo "SignWith: yes" >> conf/distributions + + - name: Build .deb Package and Add to Repository shell: bash run: | TAG=${{ env.RELEASE_TAG }} VERSION=${TAG:1} for arch in amd64 arm64; do - BUILD_NAME=${{ env.PROJECT }}_${VERSION}_${arch} - - # Create the directory structure for the .deb package - mkdir -p ${BUILD_NAME}/DEBIAN - mkdir -p ${BUILD_NAME}/usr/bin - mkdir -p ${BUILD_NAME}/etc/systemd/system - - # Copy the ${{ env.PROJECT }} binary - unzip ./artifacts/${{ env.PROJECT }}_linux_${arch}.zip -d ./artifacts/${arch}/ - cp ./artifacts/${arch}/${{ env.PROJECT }} ${BUILD_NAME}/usr/bin/${{ env.PROJECT }} - - # Create the control file - echo "Package: ${{ env.PROJECT }}" > ${BUILD_NAME}/DEBIAN/control - echo "Version: $VERSION" >> ${BUILD_NAME}/DEBIAN/control - echo "Architecture: ${arch}" >> ${BUILD_NAME}/DEBIAN/control - echo "Maintainer: The Sia Foundation " >> ${BUILD_NAME}/DEBIAN/control - echo "Description: ${DESCRIPTION}" >> ${BUILD_NAME}/DEBIAN/control - echo "Homepage: https://github.com/SiaFoundation/${{ env.PROJECT }}" >> ${BUILD_NAME}/DEBIAN/control - - # Create systemd service file - echo "[Unit]" > ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - echo "Description=${DESCRIPTION}" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - echo "" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - echo "After=network.target" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - - echo "[Service]" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - echo "ExecStart=/usr/bin/${{ env.PROJECT }}" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - echo "WorkingDirectory=/var/lib/${{ env.PROJECT }}" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - echo "Restart=always" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - echo "RestartSec=15" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - echo "" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - - echo "[Install]" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - echo "WantedBy=multi-user.target" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - echo "Alias=${{ env.PROJECT }}.service" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service - - # Create the prerem script - echo "#!/bin/sh" > ${BUILD_NAME}/DEBIAN/prerm - echo "systemctl stop ${{ env.PROJECT }}.service" >> ${BUILD_NAME}/DEBIAN/prerm - echo "systemctl disable ${{ env.PROJECT }}.service" >> ${BUILD_NAME}/DEBIAN/prerm - chmod +x ${BUILD_NAME}/DEBIAN/prerm - - # Build the .deb file - echo "Building ${BUILD_NAME}.deb" - dpkg-deb --build ${BUILD_NAME} - - # Move the .deb file - mkdir -p ./debian/pool/main/${{ env.PROJECT }} - mv ${BUILD_NAME}.deb ./debian/pool/main/${{ env.PROJECT }}/ - - # Sign the .deb file - rm -f ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb.sig - gpg --armor --detach-sign --output ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb.sig ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb - - # Remove the temporary folders - rm -rf ${BUILD_NAME} - - # Update the Packages file - mkdir -p debian/dists/stable/main/binary-${arch} - cd debian - dpkg-scanpackages pool/main/ | gzip -c > dists/stable/main/binary-${arch}/Packages.gz - cd ../ + BUILD_NAME=${{ env.PROJECT }}_${VERSION}_${arch} + + # Create the directory structure for the .deb package + mkdir -p ${BUILD_NAME}/DEBIAN + mkdir -p ${BUILD_NAME}/usr/bin + mkdir -p ${BUILD_NAME}/etc/systemd/system + + # Copy the ${{ env.PROJECT }} binary + unzip ./artifacts/${{ env.PROJECT }}_linux_${arch}.zip -d ./artifacts/${arch}/ + cp ./artifacts/${arch}/${{ env.PROJECT }} ${BUILD_NAME}/usr/bin/${{ env.PROJECT }} + + # Create the control file + echo "Package: ${{ env.PROJECT }}" > ${BUILD_NAME}/DEBIAN/control + echo "Version: $VERSION" >> ${BUILD_NAME}/DEBIAN/control + echo "Architecture: ${arch}" >> ${BUILD_NAME}/DEBIAN/control + echo "Maintainer: The Sia Foundation " >> ${BUILD_NAME}/DEBIAN/control + echo "Description: ${DESCRIPTION}" >> ${BUILD_NAME}/DEBIAN/control + echo "Homepage: https://github.com/SiaFoundation/${{ env.PROJECT }}" >> ${BUILD_NAME}/DEBIAN/control + + # Create systemd service file + echo "[Unit]" > ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + echo "Description=${DESCRIPTION}" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + echo "" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + echo "After=network.target" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + + echo "[Service]" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + echo "ExecStart=/usr/bin/${{ env.PROJECT }}" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + echo "WorkingDirectory=/var/lib/${{ env.PROJECT }}" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + echo "Restart=always" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + echo "RestartSec=15" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + echo "" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + + echo "[Install]" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + echo "WantedBy=multi-user.target" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + echo "Alias=${{ env.PROJECT }}.service" >> ${BUILD_NAME}/etc/systemd/system/${{ env.PROJECT }}.service + + # Create the prerem script + echo "#!/bin/sh" > ${BUILD_NAME}/DEBIAN/prerm + echo "systemctl stop ${{ env.PROJECT }}.service" >> ${BUILD_NAME}/DEBIAN/prerm + echo "systemctl disable ${{ env.PROJECT }}.service" >> ${BUILD_NAME}/DEBIAN/prerm + chmod +x ${BUILD_NAME}/DEBIAN/prerm + + # Build the .deb file + dpkg-deb --build ${BUILD_NAME} + + # Move the .deb file to a known directory + mkdir -p ./debian/pool/main/${{ env.PROJECT }} + mv ${BUILD_NAME}.deb ./debian/pool/main/${{ env.PROJECT }}/ + + # Sign the .deb file (if necessary) + rm -f ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb.sig + gpg --armor --detach-sign --output ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb.sig ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb done - # Delete artifacts folder - rm -rf ./artifacts + # Initialize repository directory for reprepro + mkdir -p conf + echo "Codename: stable" > conf/distributions + echo "Architectures: amd64 arm64 source" >> conf/distributions + echo "Components: main" >> conf/distributions + echo "Description: $DESCRIPTION" >> conf/distributions + echo "SignWith: yes" >> conf/distributions - # Create a config file for apt-ftparchive - echo "APT::FTPArchive::Release::Origin \"Sia Foundation\";" > ./release.conf - echo "APT::FTPArchive::Release::Label \"Sia Foundation Debian Repository\";" >> ./release.conf - echo "APT::FTPArchive::Release::Suite \"stable\";" >> ./release.conf - echo "APT::FTPArchive::Release::Codename \"stable\";" >> ./release.conf - echo "APT::FTPArchive::Release::Version \"1.0\";" >> ./release.conf - echo "APT::FTPArchive::Release::Architectures \"amd64 arm64\";" >> ./release.conf - echo "APT::FTPArchive::Release::Components \"main\";" >> ./release.conf - echo "APT::FTPArchive::Release::Description \"Sia Foundation Debian Repository\";" >> ./release.conf - echo "APT::FTPArchive::Release::BasePath \"debian\";" >> ./release.conf - - # Create the Release file - apt-ftparchive -c release.conf release debian/ > debian/dists/stable/Release - rm release.conf - - # Sign the Release file - rm -f debian/dists/stable/Release.gpg - gpg --armor --detach-sign --output debian/dists/stable/Release.gpg debian/dists/stable/Release + # Add packages to the repository with reprepro + reprepro -Vb . includedeb stable ./debian/pool/main/${{ env.PROJECT }}/*.deb + + # Clean up artifacts and temporary configuration + rm -rf ./artifacts + rm -rf ./conf - name: Create Pull Request uses: peter-evans/create-pull-request@v5 From e87187431f194ccc0a37caffdb00df563894fcdc Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 6 Feb 2024 11:54:46 +0100 Subject: [PATCH 13/21] ci: add section --- .github/workflows/build.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13c8c3ea..daab03e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,16 +62,7 @@ jobs: run_id: ${{ env.WORKFLOW_ID }} workflow_conclusion: success - - name: Prepare repository with reprepro - run: | - mkdir -p conf - echo "Codename: stable" > conf/distributions - echo "Architectures: amd64 arm64 source" >> conf/distributions - echo "Components: main" >> conf/distributions - echo "Description: $DESCRIPTION" >> conf/distributions - echo "SignWith: yes" >> conf/distributions - - - name: Build .deb Package and Add to Repository + - name: Build .deb packages shell: bash run: | TAG=${{ env.RELEASE_TAG }} @@ -94,6 +85,7 @@ jobs: echo "Version: $VERSION" >> ${BUILD_NAME}/DEBIAN/control echo "Architecture: ${arch}" >> ${BUILD_NAME}/DEBIAN/control echo "Maintainer: The Sia Foundation " >> ${BUILD_NAME}/DEBIAN/control + echo "Section: net" >> ${BUILD_NAME}/DEBIAN/control echo "Description: ${DESCRIPTION}" >> ${BUILD_NAME}/DEBIAN/control echo "Homepage: https://github.com/SiaFoundation/${{ env.PROJECT }}" >> ${BUILD_NAME}/DEBIAN/control @@ -121,6 +113,7 @@ jobs: chmod +x ${BUILD_NAME}/DEBIAN/prerm # Build the .deb file + echo "Building ${BUILD_NAME}.deb" dpkg-deb --build ${BUILD_NAME} # Move the .deb file to a known directory @@ -132,6 +125,8 @@ jobs: gpg --armor --detach-sign --output ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb.sig ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb done + - name: Add packages to repository + run: | # Initialize repository directory for reprepro mkdir -p conf echo "Codename: stable" > conf/distributions @@ -139,11 +134,10 @@ jobs: echo "Components: main" >> conf/distributions echo "Description: $DESCRIPTION" >> conf/distributions echo "SignWith: yes" >> conf/distributions - - # Add packages to the repository with reprepro reprepro -Vb . includedeb stable ./debian/pool/main/${{ env.PROJECT }}/*.deb - # Clean up artifacts and temporary configuration + - name: Clean up + run: | rm -rf ./artifacts rm -rf ./conf From 9b7655505423e47334e0142e340ca6f10b2aa495 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 6 Feb 2024 11:58:10 +0100 Subject: [PATCH 14/21] ci: add priority --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index daab03e1..8cc96d4e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -85,6 +85,7 @@ jobs: echo "Version: $VERSION" >> ${BUILD_NAME}/DEBIAN/control echo "Architecture: ${arch}" >> ${BUILD_NAME}/DEBIAN/control echo "Maintainer: The Sia Foundation " >> ${BUILD_NAME}/DEBIAN/control + echo "Priority: optional" >> ${BUILD_NAME}/DEBIAN/control echo "Section: net" >> ${BUILD_NAME}/DEBIAN/control echo "Description: ${DESCRIPTION}" >> ${BUILD_NAME}/DEBIAN/control echo "Homepage: https://github.com/SiaFoundation/${{ env.PROJECT }}" >> ${BUILD_NAME}/DEBIAN/control From f6c1fc7647efbba5454cd2df3b41c66495541361 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 6 Feb 2024 12:51:11 +0100 Subject: [PATCH 15/21] ci: fix base dir --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8cc96d4e..7b755927 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -135,7 +135,7 @@ jobs: echo "Components: main" >> conf/distributions echo "Description: $DESCRIPTION" >> conf/distributions echo "SignWith: yes" >> conf/distributions - reprepro -Vb . includedeb stable ./debian/pool/main/${{ env.PROJECT }}/*.deb + reprepro -Vb ./debian includedeb stable ./debian/pool/main/${{ env.PROJECT }}/*.deb - name: Clean up run: | From 62a087af0c66778bc8438ef4153affe21caf88ea Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 6 Feb 2024 12:55:10 +0100 Subject: [PATCH 16/21] ci: fix conf location --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7b755927..b149fb95 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -129,18 +129,18 @@ jobs: - name: Add packages to repository run: | # Initialize repository directory for reprepro - mkdir -p conf - echo "Codename: stable" > conf/distributions - echo "Architectures: amd64 arm64 source" >> conf/distributions - echo "Components: main" >> conf/distributions - echo "Description: $DESCRIPTION" >> conf/distributions - echo "SignWith: yes" >> conf/distributions + mkdir -p ./debian/conf + echo "Codename: stable" > ./debian/conf/distributions + echo "Architectures: amd64 arm64 source" >> ./debian/conf/distributions + echo "Components: main" >> ./debian/conf/distributions + echo "Description: $DESCRIPTION" >> ./debian/conf/distributions + echo "SignWith: yes" >> ./debian/conf/distributions reprepro -Vb ./debian includedeb stable ./debian/pool/main/${{ env.PROJECT }}/*.deb - name: Clean up run: | rm -rf ./artifacts - rm -rf ./conf + rm -rf ./debian/conf - name: Create Pull Request uses: peter-evans/create-pull-request@v5 From 20e88d9b638d9cfd618aa9166c414421ace9bcd7 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 6 Feb 2024 13:00:43 +0100 Subject: [PATCH 17/21] ci: cleanup deb and deb sig --- .github/workflows/build.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b149fb95..f30cb621 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -117,13 +117,9 @@ jobs: echo "Building ${BUILD_NAME}.deb" dpkg-deb --build ${BUILD_NAME} - # Move the .deb file to a known directory - mkdir -p ./debian/pool/main/${{ env.PROJECT }} - mv ${BUILD_NAME}.deb ./debian/pool/main/${{ env.PROJECT }}/ - - # Sign the .deb file (if necessary) - rm -f ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb.sig - gpg --armor --detach-sign --output ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb.sig ./debian/pool/main/${{ env.PROJECT }}/${BUILD_NAME}.deb + # Sign the .deb file + rm -f ${BUILD_NAME}.deb.sig + gpg --armor --detach-sign --output ${BUILD_NAME}.deb.sig ${BUILD_NAME}.deb done - name: Add packages to repository @@ -139,6 +135,8 @@ jobs: - name: Clean up run: | + rm *.deb + rm *.deb.sig rm -rf ./artifacts rm -rf ./debian/conf From 5b6be60b256d700f6fb22499979b7eacc8ca9aea Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 6 Feb 2024 13:06:10 +0100 Subject: [PATCH 18/21] ci: don't sign deb files --- .github/workflows/build.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f30cb621..a4676191 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -116,10 +116,6 @@ jobs: # Build the .deb file echo "Building ${BUILD_NAME}.deb" dpkg-deb --build ${BUILD_NAME} - - # Sign the .deb file - rm -f ${BUILD_NAME}.deb.sig - gpg --armor --detach-sign --output ${BUILD_NAME}.deb.sig ${BUILD_NAME}.deb done - name: Add packages to repository @@ -131,12 +127,11 @@ jobs: echo "Components: main" >> ./debian/conf/distributions echo "Description: $DESCRIPTION" >> ./debian/conf/distributions echo "SignWith: yes" >> ./debian/conf/distributions - reprepro -Vb ./debian includedeb stable ./debian/pool/main/${{ env.PROJECT }}/*.deb + reprepro -Vb ./debian includedeb stable *.deb - name: Clean up run: | rm *.deb - rm *.deb.sig rm -rf ./artifacts rm -rf ./debian/conf From baad5f4af010de75faf691e78e1be94268881ccc Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 6 Feb 2024 13:13:14 +0100 Subject: [PATCH 19/21] ci: remove deb dir --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4676191..0c7f2641 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -116,6 +116,9 @@ jobs: # Build the .deb file echo "Building ${BUILD_NAME}.deb" dpkg-deb --build ${BUILD_NAME} + + # Remove the folder + rm -rf ${BUILD_NAME} done - name: Add packages to repository From 7b024f794f227970307fec01ec8691b532ae3e10 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 6 Feb 2024 13:18:43 +0100 Subject: [PATCH 20/21] ci: don't include source --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c7f2641..55d28fbd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -126,7 +126,7 @@ jobs: # Initialize repository directory for reprepro mkdir -p ./debian/conf echo "Codename: stable" > ./debian/conf/distributions - echo "Architectures: amd64 arm64 source" >> ./debian/conf/distributions + echo "Architectures: amd64 arm64" >> ./debian/conf/distributions echo "Components: main" >> ./debian/conf/distributions echo "Description: $DESCRIPTION" >> ./debian/conf/distributions echo "SignWith: yes" >> ./debian/conf/distributions From 256d7ce97b7c031997ec2283f1b24ef50b8cbea8 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 6 Feb 2024 13:27:40 +0100 Subject: [PATCH 21/21] ci: create separate conf folder --- .github/workflows/build.yml | 8 -------- debian/conf/distributions | 5 +++++ 2 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 debian/conf/distributions diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 55d28fbd..0bbe1d6b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -123,20 +123,12 @@ jobs: - name: Add packages to repository run: | - # Initialize repository directory for reprepro - mkdir -p ./debian/conf - echo "Codename: stable" > ./debian/conf/distributions - echo "Architectures: amd64 arm64" >> ./debian/conf/distributions - echo "Components: main" >> ./debian/conf/distributions - echo "Description: $DESCRIPTION" >> ./debian/conf/distributions - echo "SignWith: yes" >> ./debian/conf/distributions reprepro -Vb ./debian includedeb stable *.deb - name: Clean up run: | rm *.deb rm -rf ./artifacts - rm -rf ./debian/conf - name: Create Pull Request uses: peter-evans/create-pull-request@v5 diff --git a/debian/conf/distributions b/debian/conf/distributions new file mode 100644 index 00000000..00c4b786 --- /dev/null +++ b/debian/conf/distributions @@ -0,0 +1,5 @@ +Codename: stable +Architectures: amd64 arm64 +Components: main +Description: The official home of Sia's Debian packages +SignWith: yes \ No newline at end of file