balena-supervisor/.github/workflows/balena-ci.yml
Miguel Casqueira 959d425a5c Move to balena-ci action for deployments
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-11-09 01:00:06 -05:00

26 lines
782 B
YAML

name: balenaCloud
on:
pull_request:
types: [opened, synchronize, closed]
branches:
- master
jobs:
deploy-release:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
arch: [aarch64, amd64, armv7hf, i386, rpi]
environment: [ { tld: balena-cloud.com, token_prop_name: BALENA_TOKEN }, { tld: balena-staging.com, token_prop_name: BALENA_STAGING_TOKEN } ]
steps:
- uses: actions/checkout@v2
- uses: balena-io/balena-ci@master
name: 'Deploy to ${{ matrix.environment.tld }}'
with:
balena_token: ${{ secrets[matrix.environment.token_prop_name] }}
fleet: 'balena_os/${{ matrix.arch }}-supervisor'
versionbot: true
environment: ${{ matrix.environment.tld }}