-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: clean up secureli formula references to private download strat…
…egies (#36) * Updated README to include installation & upgrade steps * Consolidated deployment steps into a separate bash script * Update formula template to remove all references to private download strategies --------- Co-authored-by: Raul Centeno <[email protected]>
- Loading branch information
Showing
4 changed files
with
46 additions
and
19 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 |
---|---|---|
|
@@ -70,26 +70,14 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
repository: slalombuild/homebrew-secureli | ||
token: ${{ secrets.ADMIN_TOKEN_SASCHA }} # `GH_PAT` is a secret that contains your PAT | ||
token: ${{ secrets.GITHUB_TOKEN }} # `GH_PAT` is a secret that contains your PAT | ||
path: homebrew-secureli | ||
ref: main | ||
fetch-depth: 0 | ||
- name: Homebrew Formula Generation | ||
env: | ||
GH_TOKEN: ${{ secrets.ADMIN_TOKEN_SASCHA }} | ||
run: | | ||
pip install requests jinja2 poetry python-semantic-release | ||
export secureliVersion=$(semantic-release print-version --current) | ||
gh release download v$secureliVersion | ||
export secureliSha256=$(sha256sum ./secureli-${secureliVersion}.tar.gz | awk '{print $1}') | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Secureli Automation" | ||
python ./scripts/get-secureli-dependencies.py | ||
cd homebrew-secureli | ||
git checkout -b "secureli-${secureliVersion}-formula-generation" | ||
git add ./Formula/secureli.rb | ||
git commit -m "Creating pull request with latest Secureli formula for version ${secureliVersion}" | ||
git push origin secureli-${secureliVersion}-formula-generation --repo https://github.com/slalombuild/homebrew-secureli.git | ||
gh release create ${secureliVersion} | ||
gh pr create --title "Secureli Formula Automated Creation for version ${secureliVersion}" --body "Automated formula creation" | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./scripts/secureli-deployment.sh | ||
test-osx: | ||
runs-on: macos-latest | ||
steps: | ||
|
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
set -exo pipefail | ||
|
||
pip install requests jinja2 poetry python-semantic-release # TODO: Look into Dockerizing these tools so we're not pulling them down each pipeile run | ||
export secureliVersion=$(semantic-release print-version --current) | ||
if git rev-parse "v${secureliVersion}" >/dev/null 2>&1; then | ||
echo "The tag v${secureliVersion} that would have been deployed already exists, ending pipeline execution..." | ||
exit 1 | ||
else | ||
echo "The tag v${secureliVersion} does not exist, proceeding with deployment" | ||
echo "Pulling down the most recent published secureli release v${secureliVersion}" | ||
gh release download v$secureliVersion | ||
export secureliSha256=$(sha256sum ./secureli-${secureliVersion}.tar.gz | awk '{print $1}') | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Secureli Automation" | ||
python ./scripts/get-secureli-dependencies.py | ||
cd homebrew-secureli | ||
git checkout -b "secureli-${secureliVersion}-formula-generation" | ||
git add ./Formula/secureli.rb | ||
git commit -m "Creating pull request with latest Secureli formula for version ${secureliVersion}" | ||
git push origin secureli-${secureliVersion}-formula-generation --repo https://github.com/slalombuild/homebrew-secureli.git | ||
gh release create v${secureliVersion} | ||
gh pr create --title "Secureli Formula Automated Creation for version ${secureliVersion}" --body "Automated formula creation" | ||
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