-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (27 loc) · 996 Bytes
/
build.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
name: Build Containers
on: [pull_request]
env:
SPARQL_ENDPOINT_URL: https://prismdb.takanakahiko.me/sparql
DBA_PASSWORD: hogehuga
jobs:
delivery:
runs-on: ubuntu-latest
strategy:
matrix:
SERVICE_NAME: [web, virtuoso]
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: prepara rdfs
working-directory: csv2rdf
run: |
npm ci
BASE_URL=https://prismdb.takanakahiko.me npm start
- name: Configure docker to use the gcloud cli
run: gcloud auth configure-docker --quiet
- if: matrix.SERVICE_NAME == 'web'
run: echo "BUILD_ARGS=--build-arg SPARQL_ENDPOINT_URL=${{ env.SPARQL_ENDPOINT_URL }}" >> $GITHUB_ENV
- if: matrix.SERVICE_NAME == 'virtuoso'
run: echo "BUILD_ARGS=--build-arg DBA_PASSWORD=${{ env.DBA_PASSWORD }}" >> $GITHUB_ENV
- name: Build a docker image
run: docker build ${{ matrix.SERVICE_NAME }} $BUILD_ARGS