-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.03 KB
/
data_ingestion.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Data ingestion
on: ["push", "workflow_dispatch"]
jobs:
data_ingestion:
environment: glvd-data-ingestion
name: data ingestion
runs-on: ubuntu-latest
env:
PGHOST: "${{ 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: Build image for data ingestion container
id: build
uses: docker/build-push-action@v5
with:
context: .
file: container/Containerfile
load: true
- name: Run modified glvd container for data ingestion
run: >
docker run
--network host
--rm
--env PGHOST="$PGHOST"
--env PGPORT="$PGPORT"
--env PGUSER="$PGUSER"
--env PGPASSWORD="$PGPASSWORD"
--env PGDATABASE="$PGDATABASE"
${{ steps.build.outputs.imageid }}