Skip to content

Commit

Permalink
Deploy dummy-app til prod-gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
madsleegiil committed Jul 2, 2024
1 parent 431ea4a commit 94045b7
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/dummy-gcp-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and deploy dev-gcp
on:
workflow_dispatch:
push:
branches:
- gcp-premigrering

permissions:
contents: read
id-token: write
jobs:
build_and_deploy:
name: Build, push and deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Push docker image to GAR
uses: nais/docker-build-push@v0
id: docker-build-push
with:
team: dab
owner: dab
dockerfile: dummy-app/Dockerfile
image_suffix: dummy
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} # Provided as Organization Secret
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }} # Provided as Organization Variable
- name: Deploy to NAIS
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-gcp
APIKEY: ${{ secrets.DAB_NAIS_DEPLOY_APIKEY }}
RESOURCE: nais/nais-dev-gcp.yaml
VAR: image=${{ steps.docker-build-push.outputs.image }}

0 comments on commit 94045b7

Please sign in to comment.