Build IIIF Manifests #27
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 IIIF Manifests | |
on: | |
workflow_dispatch: | |
inputs: | |
index: | |
description: "SSID to process (e.g. 35103808), leave blank to process all items" | |
required: false | |
default: "" | |
jobs: | |
build-and-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build Docker image | |
run: docker build . -t etl | |
- name: Run Docker Image | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
run: | | |
if [ -z "${{ github.event.inputs.index }}" ]; then | |
docker run -e AWS_SECRET_ACCESS_KEY -e AWS_ACCESS_KEY_ID etl | |
else | |
docker run -e AWS_SECRET_ACCESS_KEY -e AWS_ACCESS_KEY_ID etl -m imaginerio-etl.scripts.iiif -i ${{ github.event.inputs.index }} | |
fi |