Skip to content

Commit

Permalink
Merge branch 'main' into standardize-alert-panels
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Dec 9, 2024
2 parents 7744308 + 0b868e7 commit 1bdb8af
Show file tree
Hide file tree
Showing 69 changed files with 740 additions and 936 deletions.
5 changes: 0 additions & 5 deletions .firebaserc

This file was deleted.

35 changes: 18 additions & 17 deletions .github/workflows/bld_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ on:
required: false
default: "default"
type: string
push:
description: 'Select to push to docker registry'
required: false
default: true
type: boolean

workflow_dispatch:
inputs:
Expand Down Expand Up @@ -82,7 +87,11 @@ on:
required: false
default: "default"
type: string

push:
description: 'Select to push to docker registry'
required: false
default: true
type: boolean

jobs:
bld_docker:
Expand All @@ -92,22 +101,22 @@ jobs:
- artifact_name: prod
docker_name: orcid/registry/orcid-web-frontend-prod
build_args: "build_env=prod"
file: Dockerfile.build
file: Dockerfile.build.yarn

- artifact_name: sandbox
docker_name: orcid/registry/orcid-web-frontend-sandbox
build_args: "build_env=sandbox"
file: Dockerfile.build
file: Dockerfile.build.yarn

- artifact_name: qa
docker_name: orcid/registry/orcid-web-frontend-qa
build_args: "build_env=qa"
file: Dockerfile.build
file: Dockerfile.build.yarn

- artifact_name: int
docker_name: orcid/registry/orcid-web-frontend-int
build_args: "build_env=int"
file: Dockerfile.build
file: Dockerfile.build.yarn

runs-on: ubuntu-latest
steps:
Expand All @@ -133,15 +142,7 @@ jobs:
bump: ${{ inputs.bump }}

- uses: docker/setup-buildx-action@v3
- uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
# each cache needs a unique key for the job
key: ${{ runner.os }}-buildx-${{ hashFiles(inputs.context) }}
# Alternative restore keys if no exact match is found
# I /think/ this means that other docker buildx jobs could help out here
restore-keys: |
${{ runner.os }}-buildx-

- name: Login to private registry
uses: docker/login-action@v3
with:
Expand All @@ -161,11 +162,11 @@ jobs:
- uses: docker/build-push-action@v6
with:
push: true
push: ${{ inputs.push }}
tags: ${{ secrets.DOCKER_REG_PRIVATE }}/${{ matrix.docker_name}}:${{ steps.version.outputs.version_tag_numeric }}
context: ${{ inputs.context }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
cache-from: type=registry,ref=${{ secrets.DOCKER_REG_PRIVATE }}/${{ matrix.docker_name }}:cache
cache-to: type=registry,mode=max,image-manifest=true,oci-mediatypes=true,ref=${{ secrets.DOCKER_REG_PRIVATE }}/${{ matrix.docker_name }}:cache
build-args: ${{ matrix.build_args }}
file: ${{ steps.dynamic_defaults.outputs.default_file }}

50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
## v2.109.2 - 2024-12-03

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.109.1...v2.109.2)

- [#2410](https://github.com/ORCID/orcid-angular/pull/2410): tx pull
- [#2409](https://github.com/ORCID/orcid-angular/pull/2409): Transifex

## v2.109.1 - 2024-11-29

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.109.0...v2.109.1)

- [#2408](https://github.com/ORCID/orcid-angular/pull/2408): qa-localstorage-check-should-be-background-compatible-with-the-previo…

## v2.109.0 - 2024-11-28

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.108.0...v2.109.0)

## v2.108.0 - 2024-11-28

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.107.18...v2.108.0)

- [#2405](https://github.com/ORCID/orcid-angular/pull/2405): feat/yarn-docker-container-registry-caching
- [#2407](https://github.com/ORCID/orcid-angular/pull/2407): Lmendoza/singin interstitial 2

## v2.107.18 - 2024-11-27

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.107.17...v2.107.18)

- [#2406](https://github.com/ORCID/orcid-angular/pull/2406): Lmendoza/singin interstitial 2

## v2.107.17 - 2024-11-26

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.107.16...v2.107.17)

- [#2404](https://github.com/ORCID/orcid-angular/pull/2404): Lmendoza/singin interstitial 2

## v2.107.16 - 2024-11-26

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.107.15...v2.107.16)

## v2.107.15 - 2024-11-25

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.107.14...v2.107.15)

- [#2402](https://github.com/ORCID/orcid-angular/pull/2402): 9499-email-domains-interstitial-registry-sign-in

## v2.107.14 - 2024-11-20

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.107.13...v2.107.14)

## v2.107.13 - 2024-11-18

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.107.12...v2.107.13)
Expand Down
34 changes: 34 additions & 0 deletions Dockerfile.build.yarn
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#FROM node:20.15.0-alpine AS build
#FROM node:18.19.1-bullseye AS build
FROM node:22.11.0-bullseye AS build
#FROM node:16.14.0-bullseye AS build

ARG build_env

WORKDIR /app

COPY package.json .

RUN yarn

COPY *.json .

COPY src/ src/

COPY scripts/ scripts/

# RUN apk add gettext

RUN yarn build:${build_env}

FROM nginx:1.26.2-alpine
#FROM nginx:1.26.2-bookworm

RUN mkdir -p /usr/share/nginx/html/orcid-web-frontend

COPY ./nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf

COPY --from=build /app/dist/ /usr/share/nginx/html/orcid-web-frontend/

EXPOSE 80

12 changes: 12 additions & 0 deletions docker-compose.build.yarn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '2'
services:
angular_yarn:
image: ${DOCKER_REG_PRIVATE}/orcid/registry/orcid-web-frontend-${BUILD_ENV:-qa}:${TAG:-0.0.1}
# entrypoint: sleep infinity
build:
context: .
dockerfile: Dockerfile.build.yarn
args:
build_env: ${BUILD_ENV:-qa}
ports:
- 0.0.0.0:13106:80
111 changes: 0 additions & 111 deletions firebase.json

This file was deleted.

24 changes: 24 additions & 0 deletions nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
server {
listen 80;
server_name _;

# redirect language code dirs to an index.html dir
#
if (!-f $request_filename) {
rewrite "^\/orcid-web-frontend\/([a-z]{2}(_[A-Za-z]{2})?)\/.*" /orcid-web-frontend/$1/index.html last;
}

location / {
root /usr/share/nginx/html;
index index.html index.htm;
}

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

}

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"core-js": "^3.6.5",
"del": "^6.0.0",
"dotenv": "^16.0.3",
"firebase": "^7.6.0",
"gulp-clean": "^0.4.0",
"gulp-flatten": "^0.4.0",
"helphero": "^3.6.0",
Expand Down
4 changes: 4 additions & 0 deletions pull_and_clean_properties.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ tx_operations "pl_PL" "pl"
# Find all .properties files and process them
find . -type f -name "*.properties" -exec bash -c 'process_file "$0"' {} \;

# Delete all ca.properties and uk.properties files
find . -type f -name "*.ca.properties" -delete
find . -type f -name "*.uk.properties" -delete

echo ">>>>>>>>>>>>>>>>>>>>>>> Finished processing general files"
Loading

0 comments on commit 1bdb8af

Please sign in to comment.