mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-25 08:21:07 +00:00
Add custom flowzone action to finalize staging releases
Change-type: patch
This commit is contained in:
parent
6c1a9cadb2
commit
943004cf43
.github
22
.github/actions/finalize/action.yml
vendored
Normal file
22
.github/actions/finalize/action.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
|
||||
name: 'Finalize releases on staging'
|
||||
description: 'Custom publish step to finalize releases on balena staging'
|
||||
# these inputs are always provided by flowzone, so they must always be defined on the composite action
|
||||
inputs:
|
||||
json:
|
||||
description: 'JSON stringified object containing all the inputs from the calling workflow'
|
||||
required: true
|
||||
secrets:
|
||||
description: 'JSON stringified object containing all the secrets from the calling workflow'
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: balena-io/deploy-to-balena-action@v0.13.0
|
||||
with:
|
||||
balena_token: ${{ fromJSON(inputs.secrets).CUSTOM_JOB_SECRET_1 }}
|
||||
fleet: ${{ env.matrix_value }}
|
||||
environment: balena-staging.com
|
||||
versionbot: false # ignore versionbot branch since the flowzone source is already versioned
|
||||
source: .
|
12
.github/workflows/flowzone.yml
vendored
12
.github/workflows/flowzone.yml
vendored
@ -4,8 +4,8 @@ on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, closed]
|
||||
branches:
|
||||
- "main"
|
||||
- "master"
|
||||
- 'main'
|
||||
- 'master'
|
||||
|
||||
jobs:
|
||||
flowzone:
|
||||
@ -24,8 +24,12 @@ jobs:
|
||||
balena_os/armv7hf-supervisor,
|
||||
balena_os/i386-supervisor,
|
||||
balena_os/rpi-supervisor
|
||||
custom_publish_matrix:
|
||||
balena_os/aarch64-supervisor,
|
||||
custom_publish_matrix: balena_os/aarch64-supervisor,
|
||||
balena_os/amd64-supervisor,
|
||||
balena_os/armv7hf-supervisor,
|
||||
balena_os/i386-supervisor,
|
||||
balena_os/rpi-supervisor
|
||||
custom_finalize_matrix: balena_os/aarch64-supervisor,
|
||||
balena_os/amd64-supervisor,
|
||||
balena_os/armv7hf-supervisor,
|
||||
balena_os/i386-supervisor,
|
||||
|
Loading…
Reference in New Issue
Block a user