Skip to content

Get Nets register return call parameters from query params #3045

Get Nets register return call parameters from query params

Get Nets register return call parameters from query params #3045

Workflow file for this run

env:
NODE_ENV: production
jobs:
check-ci:
container:
image: ksfmedia/diskho:gha-1.2
options: "--cpus 2"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: "actions/checkout@v4"
- name: Check CI script has been generated from Dhall
run: |2
git config --global --add safe.directory $(pwd)
chmod 666 .github/workflows/*
make
chmod 644 .github/workflows/*
git diff --exit-code
deploy-gs:
container:
image: ksfmedia/diskho:gha-1.2
options: "--cpus 2"
needs: check-ci
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: "actions/checkout@v4"
- name: Auth Cloud SDK
uses: "google-github-actions/auth@v2"
with:
create_credentials_file: 'true'
credentials_json: "${{ secrets.GCP_PREVIEW_KEY }}"
project_id: ksf-staging
- name: Setup Cloud SDK
uses: "google-github-actions/setup-gcloud@v2"
- run: |2
yarn install --pure-lockfile
mkdir -p build
- name: Setup build cache for Mitt Konto
uses: "actions/cache@v4"
with:
key: "${{ runner.os }}-mitt-konto-${{ hashFiles('apps/mitt-konto/yarn.lock')}}"
path: |
apps/mitt-konto/.spago
apps/mitt-konto/output
- name: Setup build cache for Kort
uses: "actions/cache@v4"
with:
key: "${{ runner.os }}-kort-${{ hashFiles('apps/kort/yarn.lock')}}"
path: |
apps/kort/.spago
apps/kort/output
- name: "Setup build cache for Vetrina (for testing only)"
uses: "actions/cache@v4"
with:
key: "${{ runner.os }}-vetrina-test-${{ hashFiles('apps/vetrina-test/yarn.lock')}}"
path: |
apps/vetrina-test/.spago
apps/vetrina-test/output
- name: Build Scripts
run: |2
ruby deploy.rb scripts
cp -R apps/scripts/dist build/scripts
shell: bash
- env:
MAINTENANCE_MODE: 'false'
PRODUCTION_SENTRY_DSN: "https://54e59357e2fd42db917041739865e2c9@sentry.io/5174203"
name: Build Mitt Konto
run: |2
ruby deploy.rb mitt-konto
cp -R apps/mitt-konto/dist build/mitt-konto
shell: bash
- env:
MAINTENANCE_MODE: 'false'
PRODUCTION_SENTRY_DSN: "https://54e59357e2fd42db917041739865e2c9@sentry.io/5174203"
name: Build Kort
run: |2
ruby deploy.rb kort
cp -R apps/kort/dist build/kort
shell: bash
- env:
NODE_ENV: development
SENTRY_DSN: "https://6479d7c55fbd4e0db7d9ac755083865f@sentry.io/3718842"
name: "Build Vetrina (for testing only)"
run: |2
ruby deploy.rb vetrina-test
cp -R apps/vetrina-test/dist build/vetrina-test
shell: bash
- env:
MAINTENANCE_MODE: 'false'
name: Build Prenumerera
run: |2
ruby deploy.rb prenumerera
cp -R apps/prenumerera/dist build/prenumerera
shell: bash
- name: Upload Scripts
uses: "google-github-actions/upload-cloud-storage@v2"
with:
destination: "deploy-previews/${{ github.sha }}/scripts"
parent: 'false'
path: build/scripts
- name: Upload Mitt Konto
uses: "google-github-actions/upload-cloud-storage@v2"
with:
destination: "deploy-previews/${{ github.sha }}/mitt-konto"
parent: 'false'
path: build/mitt-konto
- name: Upload Kort
uses: "google-github-actions/upload-cloud-storage@v2"
with:
destination: "deploy-previews/${{ github.sha }}/kort"
parent: 'false'
path: build/kort
- name: "Upload Vetrina (for testing only)"
uses: "google-github-actions/upload-cloud-storage@v2"
with:
destination: "deploy-previews/${{ github.sha }}/vetrina-test"
parent: 'false'
path: build/vetrina-test
- name: Upload Prenumerera
uses: "google-github-actions/upload-cloud-storage@v2"
with:
destination: "deploy-previews/${{ github.sha }}/prenumerera"
parent: 'false'
path: build/prenumerera
previews:
needs:
- deploy-gs
runs-on: ubuntu-latest
steps:
- env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
name: Post preview links
uses: "unsplash/comment-on-pr@ffe8f97ccc63ce12c3c23c6885b169db67958d3b"
with:
check_for_duplicate_msg: 'false'
msg: |
Deploy previews are ready :sunglasses:
- [Scripts](https://deploy-previews.ksfmedia.fi/${{ github.sha }}/scripts/index.html)
- [Mitt Konto](https://deploy-previews.ksfmedia.fi/${{ github.sha }}/mitt-konto/index.html)
- [Kort](https://deploy-previews.ksfmedia.fi/${{ github.sha }}/kort/index.html)
- [Vetrina (for testing only)](https://deploy-previews.ksfmedia.fi/${{ github.sha }}/vetrina-test/index.html)
- [Prenumerera](https://deploy-previews.ksfmedia.fi/${{ github.sha }}/prenumerera/index.html)
name: previews
on:
pull_request:
branches:
- master