Add data ingestion mechanism #18
Workflow file for this run
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
name: Data ingestion | |
on: ["push", "workflow_dispatch"] | |
jobs: | |
data_ingestion: | |
environment: glvd-data-ingestion | |
name: data ingestion | |
runs-on: ubuntu-latest | |
env: | |
PGHOSTADDR: "${{ vars.PGHOST }}" | |
PGPORT: ${{ vars.PGPORT }} | |
PGUSER: ${{ vars.PGUSER }} | |
PGPASSWORD: ${{ secrets.PGPASSWORD }} | |
PGDATABASE: ${{ vars.PGDATABASE }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Prepare ingestion data | |
run: $PWD/$GITHUB_ACTION_PATH/src/preperation_ingestion.sh | |
- name: Run glvd for data ingestion | |
run: > | |
docker run | |
--network host | |
--rm | |
--mount="type=bind,src=$PWD/$GITHUB_ACTION_PATH/src,dst=/mnt/src,ro" | |
--mount="type=bind,src=$PWD/ingest-debsec,dst=/mnt/ingest-debsec,ro" | |
--mount="type=bind,src=$PWD/ingest-debsrc,dst=/mnt/ingest-debsrc,ro" | |
--workdir=/mnt/src | |
--entrypoint=/bin/bash | |
--env PGHOSTADDR="$PGHOSTADDR" | |
--env PGPORT="$PGPORT" | |
--env PGUSER="$PGUSER" | |
--env PGPASSWORD="$PGPASSWORD" | |
--env PGDATABASE="$PGDATABASE" | |
ghcr.io/gardenlinux/glvd:edge | |
data_ingestion.sh |