Skip to content

fix: algolia current doc version (#551) #752

fix: algolia current doc version (#551)

fix: algolia current doc version (#551) #752

Workflow file for this run

name: CD
on:
workflow_dispatch: ~
push:
branches:
- main
- staging
# Deploy if "deploy" label exists
pull_request:
types: [ reopened, synchronize, labeled ]
# Do not use concurrency to prevent simultaneous helm deployments
jobs:
remove-deploy-label:
name: Remove deploy label
if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy')
runs-on: ubuntu-latest
steps:
- uses: mondeja/remove-labels-gh-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: |
deploy
build:
name: Build
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy'))
uses: ./.github/workflows/build.yml
with:
tags: |
type=ref,event=pr,prefix=pr-,priority=1000
type=edge,branch=$repo.default_branch,priority=900
type=raw,value=latest,enable={{is_default_branch}},priority=900
push: true
gke-cluster: api-platform-demo
gke-zone: europe-west1-c
secrets:
gke-credentials: ${{ secrets.GKE_SA_KEY }}
gke-project: ${{ secrets.GKE_PROJECT }}
gh-key: ${{ secrets.GH_KEY }}
deploy:
name: Deploy
needs: [ build ]
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy'))
uses: ./.github/workflows/deploy.yml
with:
environment: prod
docker-images-version: ${{ github.sha }}
gke-cluster: api-platform-demo
gke-zone: europe-west1-c
secrets:
gke-credentials: ${{ secrets.GKE_SA_KEY }}
gke-project: ${{ secrets.GKE_PROJECT }}
gh-key: ${{ secrets.GH_KEY }}
# cloudflare-api-token: ${{ secrets.CF_API_TOKEN }}
# cloudflare-zone-id: ${{ secrets.CF_ZONE_ID }}