feat: PageSpeed Insights improvements (#545)

* feat: PageSpeed Insights improvements
This commit is contained in:
Kalidou Diagne
2025-09-01 12:01:00 +08:00
committed by GitHub
parent 27b23cc40c
commit 31763f7662
180 changed files with 1938 additions and 10537 deletions

View File

@@ -18,8 +18,8 @@ on:
default: "prod"
type: choice
options:
- prod
- stg
- prod
- stg
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -38,29 +38,29 @@ jobs:
steps:
- name: Check branch
run: |
if [ "${{ env.DATA_ENV }}" = "prod" ]; then
if [ "$GITHUB_REF_NAME" != "main" ]; then
echo "Operation not permitted"
exit 1
fi
if [ "${{ env.DATA_ENV }}" = "prod" ]; then
if [ "$GITHUB_REF_NAME" != "main" ]; then
echo "Operation not permitted"
exit 1
fi
fi
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::490752553772:role/pse-web-ecs-deploy-slc
role-duration-seconds: 1800
aws-region: eu-central-1
- name: Build and Push images to ECR
run: |
.github/scripts/build.sh ${{ env.DATA }} ${{ env.DATA_ENV }}
.github/scripts/build.sh ${{ env.DATA }} ${{ env.DATA_ENV }}
- name: Update Deployment
run: |
.github/scripts/deploy.sh ${{ env.DATA_ENV }}
.github/scripts/deploy.sh ${{ env.DATA_ENV }}