-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
34 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,8 +43,13 @@ stage_source() { | |
debian_version="${full_version%-*}" | ||
cd "$PKG_BUILD_PATH" || exit | ||
|
||
echo "Generating source tarball from git repo." | ||
tar --force-local -c -z -v -f "${debian_package_name}_${debian_version}.orig.tar.gz" --exclude .git\* --exclude debian "$PACKAGE_NAME" | ||
# try to download the .orig.tar.gz from existing archive, otherwise build it | ||
scp "[email protected]:/mnt/regolith-archive-volume/packages/$DISTRO/$SUITE/${debian_package_name}/${debian_package_name}_${debian_version}.orig.tar.gz" . | ||
|
||
if [ ! -f "${debian_package_name}_${debian_version}.orig.tar.gz" ]; then | ||
echo "Generating source tarball from git repo." | ||
tar --force-local -c -z -v -f "${debian_package_name}_${debian_version}.orig.tar.gz" --exclude .git\* --exclude debian "$PACKAGE_NAME" | ||
fi | ||
|
||
popd | ||
} | ||
|
@@ -93,7 +98,7 @@ publish() { | |
|
||
cp "$(pwd)/${debian_package_name}_${version}.dsc" "$PKG_PUBLISH_PATH/$DISTRO/$CODENAME/$SUITE" | ||
cp "$(pwd)/${debian_package_name}_${debian_version}.orig.tar.gz" "$PKG_PUBLISH_PATH/$DISTRO/$CODENAME/$SUITE" | ||
|
||
if [ -f "$(pwd)/${debian_package_name}_${version}.debian.tar.xz" ]; then | ||
cp "$(pwd)/${debian_package_name}_${version}.debian.tar.xz" "$PKG_PUBLISH_PATH/$DISTRO/$CODENAME/$SUITE" | ||
fi | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,17 +33,17 @@ jobs: | |
echo "[url \"[email protected]:\"]" >> ~/.gitconfig | ||
echo -e "\tinsteadOf = https://github.com/" >> ~/.gitconfig | ||
if [ "${{ github.event.inputs.dry-run-mode }}" == "push-tags" ]; then | ||
if [ "${{ inputs.dry-run-mode }}" == "push-tags" ]; then | ||
${{ github.workspace }}/.github/scripts/tag-stage.sh \ | ||
${{ github.workspace }} \ | ||
${{ github.event.inputs.stage-id }} \ | ||
${{ github.event.inputs.base-tag-name }} \ | ||
${{ github.event.inputs.package-name }} | ||
${{ inputs.stage-id }} \ | ||
${{ inputs.base-tag-name }} \ | ||
${{ inputs.package-name }} | ||
else | ||
${{ github.workspace }}/.github/scripts/tag-stage.sh \ | ||
${{ github.workspace }} \ | ||
${{ github.event.inputs.stage-id }} \ | ||
${{ github.event.inputs.base-tag-name }} \ | ||
${{ github.event.inputs.package-name }} \ | ||
${{ inputs.stage-id }} \ | ||
${{ inputs.base-tag-name }} \ | ||
${{ inputs.package-name }} \ | ||
dry-run | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
- name: Env Setup | ||
id: init | ||
run: | | ||
echo ::set-output name=s3_bucket::regolith-${{ github.event.inputs.stage }}-${{ github.event.inputs.distro }}-${{ github.event.inputs.codename }}-${{ github.event.inputs.arch }} | ||
echo ::set-output name=s3_bucket::regolith-${{ inputs.stage }}-${{ inputs.distro }}-${{ inputs.codename }}-${{ inputs.arch }} | ||
sudo apt update | ||
sudo apt install -y devscripts reprepro | ||
sudo apt install -y python3-pip | ||
|
@@ -50,11 +50,11 @@ jobs: | |
set -x | ||
export [email protected] | ||
export DEBFULLNAME="Regolith Linux" | ||
pkg_name=${{ github.event.inputs.package }} | ||
distro=${{ github.event.inputs.distro }} | ||
codename=${{ github.event.inputs.codename }} | ||
stage=${{ github.event.inputs.stage }} | ||
arch=${{ github.event.inputs.arch }} | ||
pkg_name=${{ inputs.package }} | ||
distro=${{ inputs.distro }} | ||
codename=${{ inputs.codename }} | ||
stage=${{ inputs.stage }} | ||
arch=${{ inputs.arch }} | ||
sudo chown -R runner generated-repo | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,7 +108,7 @@ jobs: | |
--include="*.debian.tar.xz" \ | ||
--include="*.diff.gz" \ | ||
--exclude="*" \ | ||
[email protected]:${{ github.event.inputs.pull-from }} \ | ||
[email protected]:${{ inputs.pull-from }} \ | ||
"${{ steps.init.outputs.package-build-path }}" | ||
- name: Rebuild Sources | ||
|
@@ -142,5 +142,5 @@ jobs: | |
rsync \ | ||
-avzh \ | ||
${{ steps.init.outputs.package-build-path }}/* | ||
[email protected]:${{ github.event.inputs.push-to }} && break || sleep 5 | ||
[email protected]:${{ inputs.push-to }} && break || sleep 5 | ||
done |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ${{ github.event.inputs.build-os-image }} | ||
runs-on: ${{ inputs.build-os-image }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Environment Setup | ||
|
@@ -52,19 +52,19 @@ jobs: | |
printf "${{ secrets.PACKAGE_PRIVATE_KEY2 }}" | base64 --decode > ~/.gnupg/private.key | ||
gpg --batch --import ~/.gnupg/private.key | ||
- name: Build ${{ github.event.inputs.package-name }} @ ${{ github.event.inputs.package-ref }} for ${{ github.event.inputs.distro }}-${{ github.event.inputs.codename }} (${{ github.event.inputs.stage }}) | ||
- name: Build ${{ inputs.package-name }} @ ${{ inputs.package-ref }} for ${{ inputs.distro }}-${{ inputs.codename }} (${{ inputs.stage }}) | ||
run: | | ||
set -x | ||
export [email protected] | ||
export DEBFULLNAME="Regolith Linux" | ||
${{ github.workspace }}/.github/scripts/local-build.sh \ | ||
--extension ${{ github.workspace }}/.github/scripts/${{ github.event.inputs.extension }} \ | ||
--extension ${{ github.workspace }}/.github/scripts/${{ inputs.extension }} \ | ||
--git-repo-path "${{ github.workspace }}" \ | ||
--package-name ${{ github.event.inputs.package-name }} \ | ||
--package-url "${{ github.event.inputs.package-url }}" \ | ||
--package-ref "${{ github.event.inputs.package-ref }}" \ | ||
--distro "${{ github.event.inputs.distro }}" \ | ||
--codename "${{ github.event.inputs.codename }}" \ | ||
--stage "${{ github.event.inputs.stage }}" | ||
--package-name ${{ inputs.package-name }} \ | ||
--package-url "${{ inputs.package-url }}" \ | ||
--package-ref "${{ inputs.package-ref }}" \ | ||
--distro "${{ inputs.distro }}" \ | ||
--codename "${{ inputs.codename }}" \ | ||
--stage "${{ inputs.stage }}" |