Skip to content

Bump replicas to 3 pods #62

Bump replicas to 3 pods

Bump replicas to 3 pods #62

name: Publish and Deploy
permissions: read-all
on:
push:
branches: [ main ]
jobs:
push_to_registry_dev:
name: Push to dev3
uses: ./.github/workflows/build-push-image.yaml
with:
environment: dev3
secrets: inherit
if: github.ref == 'refs/heads/main'
deploy_to_dev3:
name: Deploy to dev3
uses: ./.github/workflows/deploy-to-k8s.yaml
with:
environment: dev3
secrets: inherit
needs: push_to_registry_dev
if: github.ref == 'refs/heads/main'
push_to_registry_prod:
name: Push to prod1
uses: ./.github/workflows/build-push-image.yaml
with:
environment: prod1
secrets: inherit
needs: deploy_to_dev3
if: github.ref == 'refs/heads/main'
deploy_to_prod1:
name: Deploy to prod1
uses: ./.github/workflows/deploy-to-k8s.yaml
with:
environment: prod1
secrets: inherit
needs: push_to_registry_prod
if: github.ref == 'refs/heads/main'