お店情報のアップデート #318
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: 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 |