-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61658ce
commit 1b1076c
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Deploy gally sylius 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 }} | ||
uses: ./.github/workflows/tests.yml | ||
with: | ||
version: ${{ github.ref_name }} | ||
last_published_version: ${{ github.ref_name }} | ||
secrets: inherit | ||
|
||
deploy-demo-sylius: | ||
needs: tests | ||
name: Deploy gally for sylius demo | ||
if: | | ||
always() && | ||
(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: false | ||
front_version_is_tag: false | ||
secrets: | ||
AWS_DEPLOY_KEY: ${{ secrets.AWS_DEPLOY_KEY }} | ||
AWS_HOSTNAME: ${{ secrets.AWS_HOSTNAME_DEMO_SYLIUS }} | ||
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 }} | ||
MEDIA_URL: ${{ secrets.MEDIA_URL_DEMO_SYLIUS }} |