build(deps): bump next from 14.2.10 to 14.2.15 (#6367) #133
Workflow file for this run
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 Production | |
on: | |
push: | |
tags: | |
- production-release | |
workflow_dispatch: | |
jobs: | |
build_and_push_image: | |
name: Build Production 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-production:latest | |
ghcr.io/zooniverse/front-end-monorepo-production:${{ github.sha }} | |
build-args: | | |
APP_ENV=production | |
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_production: | |
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-production.tmpl | kubectl apply -f - | |
purge_cache: | |
name: Purge cached file | |
needs: [build_and_push_image, deploy_production] | |
uses: zooniverse/ci-cd/.github/workflows/purge_cache.yaml@main | |
with: | |
fdname: 'www-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_production, purge_cache] | |
if: always() | |
with: | |
commit_id: ${{ github.sha }} | |
job_name: Build Production Image | |
status: ${{ needs.build_and_push_image.result }} | |
title: "FEM Production deploy complete" | |
title_link: "https://fe-project.zooniverse.org/projects/Index" | |
secrets: | |
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} |