Skip to content

Commit

Permalink
Update cloudfront url
Browse files Browse the repository at this point in the history
  • Loading branch information
MancunianSam committed Jan 29, 2025
1 parent 366246b commit 11814cd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/generate_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def create_search():


def create_file_list():
with request.urlopen("https://d3hk4y84s0zka0.cloudfront.net/signatures.json") as url:
with request.urlopen("https://d21gi86t6uhf68.cloudfront.net/signatures.json") as url:
all_signatures = json.load(url)

signatures = sorted(all_signatures['signatures'], key=lambda k: int(re.search(r'(\d+)', k["location"]).group(1)))
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cd ..
zip -q ./results.zip ./lambdas/templates/index.html ./lambdas/templates/search_results.html indexes

LATEST_SIGNATURE_FILE=$(aws s3 ls s3://$ENVIRONMENT-pronom-website/signatures/ | sort -t'V' -k2,2n | tail -1 | awk '{split($0,a," "); print a[4]}')
aws lambda update-function-configuration --function-name pronom-soap --environment Variables={DOWNLOAD_URL=https://d3hk4y84s0zka0.cloudfront.net/signatures/$LATEST_SIGNATURE_FILE} | cat > /dev/null
aws lambda update-function-configuration --function-name pronom-soap --environment Variables={DOWNLOAD_URL=https://d21gi86t6uhf68.cloudfront.net/signatures/$LATEST_SIGNATURE_FILE} | cat > /dev/null

python .github/scripts/generate_version_file.py $LATEST_SIGNATURE_FILE
cd lambdas
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# PRONOM Website

This contains the code to generate the [PRONOM website](https://d3hk4y84s0zka0.cloudfront.net/)
This contains the code to generate the [PRONOM website](https://d21gi86t6uhf68.cloudfront.net/)

There are several components.

Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/e2e/signature_list.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('PRONOM Signature List Spec', () => {
cy.get("a[href='/signature_list']").click()
})
it('renders the signature files page', () => {
cy.request<AllSignatures>('https://d3hk4y84s0zka0.cloudfront.net/signatures.json').then((res: Cypress.Response<AllSignatures>) => {
cy.request<AllSignatures>('https://d21gi86t6uhf68.cloudfront.net/signatures.json').then((res: Cypress.Response<AllSignatures>) => {
const checkSignatures: (signatures: Array<Signature>) => void = signatures => {
for (const {location, name} of signatures) {
cy.get(`a[href='${location}`).should("have.html", name)
Expand Down

0 comments on commit 11814cd

Please sign in to comment.