Skip to content

Commit

Permalink
(Manuell) Deploy av Wonderwall
Browse files Browse the repository at this point in the history
  • Loading branch information
amundsor committed Jan 23, 2025
1 parent e0435bf commit 13922d4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy_wonderwall.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: "Deploy Wonderwall for App"
run-name: "Deploy Wonderwall for '${{ github.event.inputs.env }}'"
run-name: "Deploy Wonderwall for '${{ github.event.inputs.app-name }}'"

on:
workflow_dispatch:
inputs:
env:
app-name:
description: 'Wonderwall prod, preprod eller dev?'
required: true
default: 'dev'
Expand All @@ -22,19 +22,20 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- id: set-cluster

- name: "Set cluster based on env"
run: |
if [ "${{ inputs.env }}" == "prod" ]; then
if [ "${{ inputs.app-name }}" == "prod" ]; then
echo "CLUSTER=prod-gcp" >> $GITHUB_ENV
else
echo "CLUSTER=dev-gcp" >> $GITHUB_ENV
fi
- name: "Deploy ${{ inputs.env }} to ${{ env.CLUSTER }}"
- name: "Deploy ${{ inputs.app-name }} to ${{ env.CLUSTER }}"
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
RESOURCE: wonderwall/${{ inputs.env }}/wonderwall.yml
RESOURCE: wonderwall/${{ inputs.app-name }}/wonderwall.yml
CLUSTER: ${{ env.CLUSTER }}
REF: ${{ github.sha }}
PRINT_PAYLOAD: true

0 comments on commit 13922d4

Please sign in to comment.