Skip to content

Bump the nav-designsystem group with 4 updates #3486

Bump the nav-designsystem group with 4 updates

Bump the nav-designsystem group with 4 updates #3486

name: CI/CD (mr-arena-adapter-manager)
on:
push:
paths:
- .github/workflows/mr-arena-adapter-manager.yaml
- package.json
- pnpm-lock.yaml
- turbo.json
- frontend/arena-adapter-manager/**
workflow_dispatch:
inputs:
environment:
type: choice
description: Environment
required: true
default: dev
options:
- dev
- dev_and_prod
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CI: true
TZ: Europe/Amsterdam
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup frontend
uses: ./.github/actions/setup-frontend
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
- name: Build
run: npx turbo run lint typecheck build --filter=arena-adapter-manager
- uses: actions/upload-artifact@v4
with:
name: dist
path: frontend/arena-adapter-manager/dist
deploy-dev:
name: Deploy to dev
runs-on: ubuntu-latest
needs: [ci]
permissions:
id-token: "write" # Used to authenticate with Google Cloud
if: github.event_name == 'push' && github.ref_name == 'main' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/932652929200/locations/global/workloadIdentityPools/github/providers/github-action
service_account: dev-deploy@team-mulighetsrommet-dev-a2d7.iam.gserviceaccount.com
- name: Set up gcloud
uses: google-github-actions/setup-gcloud@v2
- name: Upload files to GCS
run: gsutil -m rsync -r dist gs://mulighetsrommet-arena-adapter-manager-dev
deploy-prod:
name: Deploy to prod
runs-on: ubuntu-latest
needs: [ci, deploy-dev]
permissions:
id-token: "write" # Used to authenticate with Google Cloud
if: github.event_name == 'push' && github.ref_name == 'main' || github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'dev_and_prod'
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/380520190028/locations/global/workloadIdentityPools/github/providers/github-action
service_account: prod-deploy@team-mulighetsrommet-prod-5492.iam.gserviceaccount.com
- name: Set up gcloud
uses: google-github-actions/setup-gcloud@v2
- name: Upload files to GCS
run: gsutil -m rsync -r dist gs://mulighetsrommet-arena-adapter-manager-prod