-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: reduce workflow dependencies (#6)
- Loading branch information
1 parent
2cdd0b3
commit f887ab5
Showing
9 changed files
with
83 additions
and
26 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
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,43 @@ | ||
name: Build and Upload vcpkg blint-db 0.1.0 | ||
|
||
on: | ||
schedule: | ||
- cron: "0 */12 * * *" | ||
workflow_dispatch: | ||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: appthreat/blintdb | ||
|
||
jobs: | ||
builder-vcpkg-tst: | ||
runs-on: ['self-hosted', 'ubuntu', 'arm64'] | ||
permissions: | ||
contents: write | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: AppThreat/blint-db | ||
path: blint-db | ||
- name: Install dependencies | ||
run: | | ||
[ -d venv ] || python3 -m venv venv | ||
source venv/bin/activate | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine build | ||
cd blint-db && python -m pip install . | ||
- name: Clean up previous | ||
run: | | ||
cd blint-db | ||
rm -f info.log | ||
rm -f blint.db | ||
- name: Build and upload db | ||
run: | | ||
mkdir -p temp | ||
source venv/bin/activate | ||
cd blint-db/ | ||
python3 blint-db/blint_db/cli.py --clean-start -f -Z2 | ||
python3 ./.oras/orasclient.py | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_USERNAME: ${{ github.actor }} |
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
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
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