Skip to content

Build and Upload vcpkg blint-db 0.1.0 #5

Build and Upload vcpkg blint-db 0.1.0

Build and Upload vcpkg blint-db 0.1.0 #5

Workflow file for this run

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:
runs-on: [self-hosted, almalinux]
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
repository: AppThreat/blint-db
path: blint-db
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
cd blint-db && python -m pip install .
- name: Build and upload db
run: |
mkdir temp
python blint-db/blint_db/cli.py -Z2
echo $GITHUB_TOKEN | oras login ghcr.io -u $GITHUB_USERNAME --password-stdin
cd blint-db
oras push ghcr.io/appthreat/blintdb-meson:v0.1 \
--config ../config.json:application/vnd.oras.config.v1+json \
--annotation-file ../annotations.json \
./blint.db:application/vnd.appthreat.vdb.layer.v1+tar \
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}