Skip to content

Run daily at 2am, right before the listmonk sync #5

Run daily at 2am, right before the listmonk sync

Run daily at 2am, right before the listmonk sync #5

Workflow file for this run

name: Deploy Hotmail Processing Cron Task
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build_and_push_image:
name: Build and Push Image
uses: zooniverse/ci-cd/.github/workflows/build_and_push_image.yaml@main
with:
repo_name: hotmail-complaint-processor
commit_id: ${{ github.sha }}
latest: true
deploy_cron:
runs-on: ubuntu-latest
needs: build_and_push_image
steps:
- name: Checkout
uses: actions/[email protected]
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_AKS }}
- name: Set the target AKS cluster
uses: Azure/aks-set-context@v3
with:
cluster-name: microservices
resource-group: kubernetes
- name: Modify & apply template
run: |
kubectl delete cronjob hotmail-complaint-processor-cronjob
kubectl create -f kubernetes/cron_script.yml