Skip to content

gdamaskos is deploying scrapers #83

gdamaskos is deploying scrapers

gdamaskos is deploying scrapers #83

# This workflow will run every 3 months or manually
name: ScrapersFlow
run-name: ${{ github.actor }} is deploying scrapers
on: [push, workflow_dispatch]
jobs:
deploy-scrapejob-to-kubernetes:
runs-on: self-hosted
env:
KUBECTL_VERSION: v1.30.5
steps:
-
name: Checkout code
uses: actions/checkout@v4
-
name: Deploy with kubectl
# apply kmanifests or leave them unchanged and always restart the deployment
run: |
curl -LO https://dl.k8s.io/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl
chmod +x ./kubectl
./kubectl apply -f ./kmanifests/dh-scrapers-pvc.yaml --token=${{ secrets.SA_TOKEN }} --namespace gw-dev-rslab-peaceportal # create/modify
./kubectl apply -f ./kmanifests/dh-scrapers-cm.yaml --token=${{ secrets.SA_TOKEN }} --namespace gw-dev-rslab-peaceportal # create/modify
./kubectl delete job dh-scrapers-job --ignore-not-found=true --now --token=${{ secrets.SA_TOKEN }} --namespace gw-dev-rslab-peaceportal
./kubectl apply -f ./kmanifests/dh-scrapers-job.yaml --token=${{ secrets.SA_TOKEN }} --namespace gw-dev-rslab-peaceportal
# ./kubectl rollout restart deployment/kb-server --token=${{ secrets.SA_TOKEN }} --namespace gw-humit-sandbox