CI: runnerlabels zoals ASF (linux = pc of Pi, raspberry-pi alleen voor de deploy); variabele CI_FAST_RUNNER vervalt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -58,7 +58,7 @@ jobs:
|
|||||||
# hieronder (waar de env-context zelf niet beschikbaar is, omdat dat een
|
# hieronder (waar de env-context zelf niet beschikbaar is, omdat dat een
|
||||||
# aanroep naar een reusable workflow is).
|
# aanroep naar een reusable workflow is).
|
||||||
config:
|
config:
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
outputs:
|
outputs:
|
||||||
artifact_name: ${{ steps.set.outputs.artifact_name }}
|
artifact_name: ${{ steps.set.outputs.artifact_name }}
|
||||||
artifact_name_production: ${{ steps.set.outputs.artifact_name_production }}
|
artifact_name_production: ${{ steps.set.outputs.artifact_name_production }}
|
||||||
@@ -77,7 +77,7 @@ jobs:
|
|||||||
echo "deploy_path_production=${{ env.DEPLOY_PATH_PRODUCTION }}" >> "$GITHUB_OUTPUT"
|
echo "deploy_path_production=${{ env.DEPLOY_PATH_PRODUCTION }}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
prepare:
|
prepare:
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -169,7 +169,7 @@ jobs:
|
|||||||
# gedeployed worden, wat Sentry-events/analytics verkeerd zou taggen.
|
# gedeployed worden, wat Sentry-events/analytics verkeerd zou taggen.
|
||||||
build-production:
|
build-production:
|
||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.deploy_production == 'true'
|
if: github.event_name == 'workflow_dispatch' && github.event.inputs.deploy_production == 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -221,11 +221,12 @@ jobs:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
# Lint + unit tests hebben het build-artefact niet nodig en lopen daarom parallel aan
|
# Lint + unit tests hebben het build-artefact niet nodig en lopen daarom parallel aan
|
||||||
# 'build'. Runner: de repository-variabele CI_FAST_RUNNER (bijv. 'bryan-desktop', sneller)
|
# 'build'.
|
||||||
# of, als die niet gezet is, de Pi. Build en deploy blijven bewust op de Pi
|
# Runners (zelfde indeling als de ASF-site): 'linux' = elke vrije runner (pc of Pi; de pc is
|
||||||
# (ubuntu-latest): op de desktop faalden die (ssh/sftp en containers).
|
# sneller, valt de pc weg dan neemt de Pi alles over), 'raspberry-pi' = alleen de Pi. Alleen de
|
||||||
|
# deploy (ssh/sftp en containers) vereist de Pi, zie deploy.yaml.
|
||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: ${{ vars.CI_FAST_RUNNER || 'ubuntu-latest' }}
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: raspberry-pi
|
||||||
steps:
|
steps:
|
||||||
- name: Download build artifact
|
- name: Download build artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user