Skip to content

Merge pull request #368 from zooniverse/fe-content-pages-revert-2 #56

Merge pull request #368 from zooniverse/fe-content-pages-revert-2

Merge pull request #368 from zooniverse/fe-content-pages-revert-2 #56

name: Deploy HTTP Frontend Production
on:
push:
tags:
- production-release
workflow_dispatch:
jobs:
deploy_nginx:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_AKS }}
- name: Set the target AKS cluster
uses: Azure/[email protected]
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 -
deploy_slack_notification:
name: Deploy Slack notification
uses: zooniverse/ci-cd/.github/workflows/slack_notification.yaml@main
needs: deploy_nginx
if: always()
with:
commit_id: ${{ github.sha }}
job_name: deploy_nginx
status: ${{ needs.deploy_nginx.result }}
title: "HTTP Frontend production deploy complete"
title_link: "https://static.zooniverse.org"
secrets:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}