Skip to content

Deploy demo

Deploy demo #20

Workflow file for this run

name: Deploy demo
on:
workflow_dispatch:
inputs:
skip_tests:
description: 'Skip tests before delivery ?'
type: boolean
default: false
required: false
jobs:
tests:
name: Tests
if: ${{ inputs.skip_tests == false && startsWith(github.ref, 'refs/tags/') }}
uses: ./.github/workflows/tests.yml
with:
version: ${{ github.ref_name }}
last_published_version: ${{ github.ref_name }}
secrets: inherit
deploy-demo:
needs: tests
name: Deploy demo
if: |
always() &&
startsWith(github.ref, 'refs/tags/') &&
(needs.tests.result == 'success' || needs.tests.result == 'skipped')
uses: ./.github/workflows/deploy-int.yml
with:
version: ${{ github.ref_name }}
last_published_version: ${{ github.ref_name }}
back_version_is_tag: true
front_version_is_tag: true
secrets:
AWS_DEPLOY_KEY: ${{ secrets.AWS_DEPLOY_KEY }}
AWS_HOSTNAME: ${{ secrets.AWS_HOSTNAME_DEMO }}
AWS_USER: ${{ secrets.AWS_USER }}
APP_SECRET: ${{ secrets.APP_SECRET }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
PACKAGIST_URL: ${{ secrets.PACKAGIST_URL }}