build(deps): bump react-i18next from 14.1.1 to 14.1.3 (#6470) #2504
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Staging | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build_and_push_image: | |
name: Build Staging Image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
tags: | | |
ghcr.io/zooniverse/front-end-monorepo-staging:latest | |
ghcr.io/zooniverse/front-end-monorepo-staging:${{ github.sha }} | |
build-args: | | |
APP_ENV=staging | |
COMMIT_ID=${{ github.sha }} | |
GITHUB_REF_NAME=${{ github.ref_name }} | |
CONTENTFUL_ACCESS_TOKEN=${{ secrets.CONTENTFUL_ACCESS_TOKEN }} | |
CONTENTFUL_SPACE_ID=${{ secrets.CONTENTFUL_SPACE_ID }} | |
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} | |
deploy_staging: | |
runs-on: ubuntu-latest | |
needs: build_and_push_image | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: azure/login@v2 | |
with: | |
creds: ${{ secrets.AZURE_AKS }} | |
- name: Set the target AKS cluster | |
uses: Azure/aks-set-context@v4 | |
with: | |
cluster-name: microservices | |
resource-group: kubernetes | |
- name: Modify & apply template | |
run: | | |
sed 's/__IMAGE_TAG__/${{ github.sha }}/g' kubernetes/deployment-staging.tmpl | kubectl apply -f - | |
purge_staging_cache: | |
name: Purge cache path | |
needs: [build_and_push_image, deploy_staging] | |
uses: zooniverse/ci-cd/.github/workflows/purge_cache.yaml@main | |
with: | |
fdname: 'frontend-preview-zooniverse-org' | |
path: '/*' | |
secrets: | |
creds: ${{ secrets.AZURE_STATIC_SITES }} | |
slack_notification: | |
name: Slack notification | |
uses: zooniverse/ci-cd/.github/workflows/slack_notification.yaml@main | |
needs: [build_and_push_image, deploy_staging, purge_staging_cache] | |
if: always() | |
with: | |
commit_id: ${{ github.sha }} | |
job_name: Build Staging Image | |
status: ${{ needs.build_and_push_image.result }} | |
title: "FEM Staging deploy complete" | |
title_link: "https://frontend.preview.zooniverse.org/projects" | |
secrets: | |
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} |