Skip to content

Commit

Permalink
Deploy newest lp and add psi config
Browse files Browse the repository at this point in the history
* Deploy newest lp and add favicon.ico

* Remove newlines from block

* Remove ess google site verification

* Add google verify as a secret

Co-authored-by: Carlo Minotti <[email protected]>
  • Loading branch information
minottic and minottic authored Dec 9, 2022
1 parent d663911 commit d2c7fc4
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reusable.build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
run: |
for f in ${{ inputs.docker_build_files }};
do
cp -r ${f%%:*} ${f#*:};
cp ${f%%:*} ${f#*:};
done
- name: Log in to the Container registry
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/scicat-landing-page-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ jobs:
- set_env
uses: ./.github/workflows/reusable.build-deploy.yml
with:
docker_build_files: helm_configs/landing-page-server/${{ needs.set_env.outputs.environment }}/environment.ts:landing-page-server/src/environments/environment.essprod.ts
docker_build_files: >-
helm_configs/landing-page-server/${{ needs.set_env.outputs.environment }}/environment.ts:landing-page-server/src/environments/environment.essprod.ts
helm_configs/landing-page-server/favicon.ico:landing-page-server/src/favicon.ico
context: landing-page-server/.
image_name: ${{ github.repository }}/landing-page-server
release_name: landing-page-server
Expand All @@ -55,3 +57,4 @@ jobs:
submodule: landing-page-server
secrets:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
JSON_SECRETS: ${{ toJSON(secrets) }}
Binary file added helm_configs/landing-page-server/favicon.ico
Binary file not shown.
14 changes: 14 additions & 0 deletions helm_configs/landing-page-server/production/environment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export const environment = {
accessDataHref:
"https://www.psi.ch/en/photon-science-data-services/slsswissfel-data-transfer",
accessInstructions:
"To access the data associated with this DOI click below and follow the instructions",
directMongoAccess: true,
doiBaseUrl: "https://doi.org/",
facility: "psi",
lbBaseURL: "https://dacat.psi.ch",
oaiProviderRoute: null,
production: true,
scicatBaseUrl: "https://discovery.psi.ch",
showLogoBanner: false
};
12 changes: 12 additions & 0 deletions helm_configs/landing-page-server/production/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
host: oaipmh-prod.qa.psi.ch

secrets:
"{{ .Release.Name }}-s":
type: Opaque
data:
google-verification.html: '${{ secrets.LP_GOOGLE_VERIFY }}'

volumeMounts:
- name: secrets-volume
mountPath: '{{ b64dec "${{ secrets.LP_GOOGLE_VERIFY }}" | trimPrefix "google-site-verification: " }}'
subPath: google-verification.html
9 changes: 9 additions & 0 deletions helm_configs/landing-page-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ ingress:
- hosts:
- "{{ .Values.host }}"
secretName: "scicat-oaipmh-certificate"

run:
command:
- /bin/sh
args:
- -c
- >
rm -f /usr/share/nginx/html/google43e14584df796f63.html;
nginx -g "daemon off;"
2 changes: 1 addition & 1 deletion landing-page-server
Submodule landing-page-server updated 20 files
+ src/assets/fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2
+ src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.eot
+312 −0 src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.svg
+ src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.ttf
+ src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff
+ src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff2
+ src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.eot
+305 −0 src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.svg
+ src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.ttf
+ src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff
+ src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff2
+ src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.eot
+308 −0 src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.svg
+ src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.ttf
+ src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff
+ src/assets/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2
+23 −0 src/assets/styles/material-icons.scss
+39 −0 src/assets/styles/roboto.scss
+0 −3 src/index.html
+3 −0 src/styles.scss

0 comments on commit d2c7fc4

Please sign in to comment.