chore: enable logging to loki as well as elastic #40
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 dev and prod | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-push-deploy: | |
permissions: | |
contents: "read" | |
id-token: "write" | |
name: Checkout code and create docker tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: docker-build-push | |
uses: nais/docker-build-push@v0 | |
id: docker-build-push | |
with: | |
team: teamsykmelding | |
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} | |
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }} | |
- name: deploy to dev-gcp | |
uses: nais/deploy/actions/deploy@master | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY_TEAMSYKMELDING }} | |
CLUSTER: dev-gcp | |
RESOURCE: naiserator-dev.yaml | |
VAR: image=${{ steps.docker-build-push.outputs.image }} | |
- name: deploy to prod-gcp | |
uses: nais/deploy/actions/deploy@master | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY_TEAMSYKMELDING }} | |
CLUSTER: prod-gcp | |
RESOURCE: naiserator-prod.yaml | |
VAR: image=${{ steps.docker-build-push.outputs.image }} |