Skip to content

run the dc every 2 minutes #26

run the dc every 2 minutes

run the dc every 2 minutes #26

name: CI/CD dc-google-spreadsheet creative-industries
on:
push:
paths:
- "collectors/google-spreadsheet/**"
- "collectors/lib/ingress-mq/**"
- ".github/workflows/dc-google-spreadsheet-build.yml"
- ".github/workflows/dc-google-spreadsheet-deploy.yml"
- ".github/workflows/dc-google-spreadsheet-creative-industries.yml"
- "!collectors/google-spreadsheet/infrastructure/helm/*.yaml"
- "collectors/google-spreadsheet/infrastructure/helm/creative-industries.yaml"
env:
WORKING_DIRECTORY: collectors/google-spreadsheet
DOCKER_IMAGE: ghcr.io/noi-techpark/opendatahub-collectors/dc-google-spreadsheet
DOCKER_TAG: ${{ github.sha }}
KUBERNETES_NAMESPACE: collector
JAVA_VERSION: 17
VALUES_YAML: infrastructure/helm/creative_industries.yaml
K8S_NAME: dc-google-spreadsheet-creative-industries
jobs:
build:
uses: ./.github/workflows/dc-google-spreadsheet-build.yml
secrets: inherit
deploy-test:
if: github.ref == 'refs/heads/main'
needs: build
uses: ./.github/workflows/dc-google-spreadsheet-deploy.yml
secrets: inherit
with:
name: creative-industries
environment: test
spreadsheet-id-secret: G_SHEETS_CREATIVE_INDUSTRIES_ID
deploy-prod:
if: github.ref == 'refs/heads/prod'
needs: build
uses: ./.github/workflows/dc-google-spreadsheet-deploy.yml
secrets: inherit
with:
name: creative-industries
environment: prod
spreadsheet-id-secret: G_SHEETS_CREATIVE_INDUSTRIES_ID