Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Merge pull request #597 from beabee-communityrm/v0.14.x #938

Merge pull request #597 from beabee-communityrm/v0.14.x

Merge pull request #597 from beabee-communityrm/v0.14.x #938

Workflow file for this run

name: Deploy
on:
push:
branches: ['main', 'dev']
jobs:
init:
name: Initialise
runs-on: ubuntu-latest
outputs:
stack: ${{ steps.getstage.outputs.stack }}
steps:
- id: getstage
run: |
case "${{ github.ref }}" in
refs/heads/main)
echo "stack=beabee-demo" >> $GITHUB_OUTPUT
;;
refs/heads/dev)
echo "stack=beabee-dev" >> $GITHUB_OUTPUT
;;
esac
check:
name: Check
uses: ./.github/workflows/check.yml
build-push:
name: Build and push
uses: ./.github/workflows/build-push.yml
needs: [check]
secrets: inherit
deploy:
runs-on: ubuntu-latest
needs: [init, build-push]
steps:
- uses: jonasschatz/portami@main
with:
endpoint: 'https://port.hive.beabee.io'
access_token: ${{ secrets.PORTAINER_ACCESSTOKEN }}
stack_name: ${{ needs.init.outputs.stack }}
prune: true
pull: true