Skip to content

Commit

Permalink
.github/workflows/deploy.yaml: use modified on-the-fly production con…
Browse files Browse the repository at this point in the history
…fig for integration tests
  • Loading branch information
zozlak committed Oct 25, 2024
1 parent 471c327 commit eae541e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
docker build --rm -t "acdhch/$RANCHER_NAMESPACE:latest" --build-arg VARIANT=production --label "buildUrl=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" build
- name: test image
run: |
docker run -d --name "$RANCHER_NAMESPACE" -p 8080:80 "acdhch/$RANCHER_NAMESPACE:latest"
composer require -n zozlak/yaml-merge
vendor/bin/yaml-edit.php --src build/config/arche.yaml --src '{"dissCacheService": {"repoDb": []}}' config.yaml
docker run -d --name "$RANCHER_NAMESPACE" -v `pwd`/config.yaml:/var/www/html/config.yaml -p 8080:80 "acdhch/$RANCHER_NAMESPACE:latest"
sleep 1
for mode in image images manifest ; do
# collection
Expand Down
3 changes: 3 additions & 0 deletions build/config/arche.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dissCacheService:
- https://vocabs.acdh.oeaw.ac.at/schema#hasFormat
- https://vocabs.acdh.oeaw.ac.at/schema#hasPixelWidth
- https://vocabs.acdh.oeaw.ac.at/schema#hasPixelHeight
- https://vocabs.acdh.oeaw.ac.at/schema#hasIiifManifest
relativesProperties:
- https://vocabs.acdh.oeaw.ac.at/schema#hasIdentifier
- https://vocabs.acdh.oeaw.ac.at/schema#hasTitle
Expand All @@ -33,6 +34,7 @@ dissCacheService:
- https://vocabs.acdh.oeaw.ac.at/schema#hasFormat
- https://vocabs.acdh.oeaw.ac.at/schema#hasPixelWidth
- https://vocabs.acdh.oeaw.ac.at/schema#hasPixelHeight
- https://vocabs.acdh.oeaw.ac.at/schema#hasIiifManifest
iiifManifest:
defaultMode: image
baseUrl: https://arche-iiifmanifest.acdh.oeaw.ac.at/
Expand All @@ -47,6 +49,7 @@ iiifManifest:
mime: https://vocabs.acdh.oeaw.ac.at/schema#hasFormat
imagePxWidth: https://vocabs.acdh.oeaw.ac.at/schema#hasPixelWidth
imagePxHeight: https://vocabs.acdh.oeaw.ac.at/schema#hasPixelHeight
iiifManifest: https://vocabs.acdh.oeaw.ac.at/schema#hasIiifManifest
classes:
collection: https://vocabs.acdh.oeaw.ac.at/schema#Collection
topCollection: https://vocabs.acdh.oeaw.ac.at/schema#TopCollection
Expand Down
3 changes: 3 additions & 0 deletions tests/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dissCacheService:
- https://vocabs.acdh.oeaw.ac.at/schema#hasFormat
- https://vocabs.acdh.oeaw.ac.at/schema#hasPixelWidth
- https://vocabs.acdh.oeaw.ac.at/schema#hasPixelHeight
- https://vocabs.acdh.oeaw.ac.at/schema#hasIiifManifest
relativesProperties:
- https://vocabs.acdh.oeaw.ac.at/schema#hasIdentifier
- https://vocabs.acdh.oeaw.ac.at/schema#hasTitle
Expand All @@ -31,6 +32,7 @@ dissCacheService:
- https://vocabs.acdh.oeaw.ac.at/schema#hasFormat
- https://vocabs.acdh.oeaw.ac.at/schema#hasPixelWidth
- https://vocabs.acdh.oeaw.ac.at/schema#hasPixelHeight
- https://vocabs.acdh.oeaw.ac.at/schema#hasIiifManifest
iiifManifest:
defaultMode: image
baseUrl: https://arche-iiifmanifest.acdh.oeaw.ac.at/
Expand All @@ -45,6 +47,7 @@ iiifManifest:
mime: https://vocabs.acdh.oeaw.ac.at/schema#hasFormat
imagePxWidth: https://vocabs.acdh.oeaw.ac.at/schema#hasPixelWidth
imagePxHeight: https://vocabs.acdh.oeaw.ac.at/schema#hasPixelHeight
iiifManifest: https://vocabs.acdh.oeaw.ac.at/schema#hasIiifManifest
classes:
collection: https://vocabs.acdh.oeaw.ac.at/schema#Collection
topCollection: https://vocabs.acdh.oeaw.ac.at/schema#TopCollection
Expand Down

0 comments on commit eae541e

Please sign in to comment.