Skip to content

submodule-update

submodule-update #1

Workflow file for this run

name: Update imagineRio
on:
repository_dispatch:
types: [submodule-update]
workflow_dispatch:
inputs:
index:
description: "SSIDs to process (space separated, e.g. '35103808 35103809'), leave blank to process all items"
required: false
default: ""
retile:
description: "Retile images. Should only be used when specifying ids above"
type: boolean
required: false
jobs:
build-and-run:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
submodules: true
- name: Update submodule
run: |
cd data
git pull origin main
# - name: Commit updated submodule
# run: |
# git config --global user.name 'Your Name'
# git config --global user.email 'your-email@example.com'
# git add path/to/your/submodule
# git commit -m "Update submodule to latest commit"
# git push
- 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: |
ARGS=""
if [ ! -z "${{ github.event.inputs.index }}" ]; then
ARGS="-m imaginerio-etl.scripts.iiif -i ${{ github.event.inputs.index }}"
fi
if [ "${{ github.event.inputs.retile }}" == "true" ]; then
ARGS="$ARGS --retile"
fi
docker run -e AWS_SECRET_ACCESS_KEY -e AWS_ACCESS_KEY_ID etl $ARGS