Rename PI_TEST_* secrets to PI_MAIN_* and centralize adjustable workflow values
Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
@@ -6,6 +6,16 @@ on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
# Herbruikbare instellingen voor deze workflow. Pas deze aan op één plek als
|
||||
# de Node/pnpm-versie wijzigt. Let op: de env-context is NIET beschikbaar in
|
||||
# de `with:`-inputs van een aangeroepen reusable workflow (zie de deploy-test
|
||||
# job hieronder), dat is een beperking van GitHub/Gitea Actions zelf, dus
|
||||
# ARTIFACT_NAME/DEPLOY_ENVIRONMENT/DEPLOY_PATH blijven daar noodgedwongen
|
||||
# letterlijk in de `with:`-sectie staan.
|
||||
env:
|
||||
NODE_VERSION: '20'
|
||||
PNPM_VERSION: '9'
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -14,11 +24,11 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
version: ${{ env.PNPM_VERSION }}
|
||||
|
||||
- name: Get pnpm store directory
|
||||
id: pnpm-store
|
||||
@@ -41,11 +51,11 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
version: ${{ env.PNPM_VERSION }}
|
||||
|
||||
- name: Get pnpm store directory
|
||||
id: pnpm-store
|
||||
@@ -78,11 +88,11 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
version: ${{ env.PNPM_VERSION }}
|
||||
|
||||
- name: Get pnpm store directory
|
||||
id: pnpm-store
|
||||
@@ -108,6 +118,10 @@ jobs:
|
||||
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/master')
|
||||
uses: ./.gitea/workflows/deploy.yaml
|
||||
secrets: inherit
|
||||
# Let op: deze waarden kunnen hier NIET via het `env:`-blok bovenaan dit
|
||||
# bestand worden gezet - de env-context is niet beschikbaar in de
|
||||
# `with:`-sectie van een aangeroepen reusable workflow (beperking van
|
||||
# GitHub/Gitea Actions zelf). Pas deze waarden dus rechtstreeks hier aan.
|
||||
with:
|
||||
artifact_name: dist
|
||||
environment: test
|
||||
|
||||
Reference in New Issue
Block a user