Skip to content

dc/g-sheets cicd

dc/g-sheets cicd #13

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-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