Skip to content

Commit

Permalink
dont_deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Seshpenguin committed Feb 24, 2023
1 parent b2d4f4d commit 2c06063
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -10,6 +10,7 @@ Nightly Alpine packages for Plasma Mobile from master/main and postmarketOS imag
- PACKAGE_LIST = string,string,string...: (build the list of packages)
- IGNORE_GIT_SILENT = true/false: (build packages even if the last commit was GIT_SILENT)
- DISTCC_SETTINGS = true/false: (build packages using distcc env)
- DONT_DEPLOY = true/false: (do not run rsync at the end of a build)

### Running
Make sure to have run `sudo apk add alpine-sdk ccache` (to have a compiler), `sudo addgroup user abuild` (to be able to run abuild), and `abuild-keygen -a -i` (to generate a key for signing a package). Relog to update groups.
Expand Down
8 changes: 5 additions & 3 deletions src/index.ts
Expand Up @@ -91,9 +91,11 @@ let buildStep = "";
}

// Deploy files
buildStep = "deploy";
console.log("🚀 Deploying files");
exec(`rsync -aHAXxv --delete --progress ~/packages/prolinux-nightly/${ARCH} espimac:/var/www/sineware/repo/alpine/prolinux-nightly/`);
if(process.env.DONT_DEPLOY !== "true") {
buildStep = "deploy";
console.log("🚀 Deploying files");
exec(`rsync -aHAXxv --delete --progress ~/packages/prolinux-nightly/${ARCH} espimac:/var/www/sineware/repo/alpine/prolinux-nightly/`);
}

buildStep = `finish`;
} catch (e) {
Expand Down

0 comments on commit 2c06063

Please sign in to comment.