Skip to content

Deploy Redis

Deploy Redis #22

Workflow file for this run

name: Deploy Redis
on:
push:
paths:
- nais/redis-dev-gcp.yaml
- nais/redis-prod-gcp.yaml
workflow_dispatch:
jobs:
deploy-redis-dev-gcp:
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/mv_arbeidsgiver_fager'
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: nais/redis-dev-gcp.yaml
deploy-redis-prod-gcp:
if: github.ref == 'refs/heads/main'
needs: deploy-redis-dev-gcp
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-gcp
RESOURCE: nais/redis-prod-gcp.yaml