Deploy 'feature/klage' to 'mock' #829
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Deploy to Development' | |
run-name: Deploy '${{ github.ref_name }}' to '${{ github.event.inputs.config-file-name }}' | |
on: | |
workflow_dispatch: | |
inputs: | |
config-file-name: | |
description: 'Config-fil som skal deployes' | |
required: true | |
default: 'dev-fss' | |
type: choice | |
options: | |
- 'mock' | |
- 'dev' | |
- 'dev-fss' | |
jobs: | |
set-cluster: | |
name: 'Sett cluster basert på config-file' | |
runs-on: ubuntu-latest | |
outputs: | |
cluster-name: ${{ steps.set-cluster-name.outputs.cluster-name }} | |
steps: | |
- name: Sett cluster basert på config-file | |
id: set-cluster-name | |
uses: navikt/sosialhjelp-ci/actions/set-cluster-name@v2 | |
with: | |
resource-name: ${{ inputs.config-file-name }} | |
deploy-to-dev: | |
name: 'Build for Deploy and Deploy to Dev' | |
needs: set-cluster | |
permissions: | |
packages: write | |
contents: write | |
uses: navikt/sosialhjelp-ci/.github/workflows/deploy_app.yml@v2 | |
with: | |
cluster-name: ${{ needs.set-cluster.outputs.cluster-name }} | |
resource-name: ${{ inputs.config-file-name }} | |
secrets: inherit |