-
Notifications
You must be signed in to change notification settings - Fork 0
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
9afe09d
commit eb1fb31
Showing
2 changed files
with
57 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,50 @@ | ||
name: Deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
branches: [ production, staging ] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: π₯ Install Github Action Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: π₯ Install Docker Layer Caching | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: π₯ Install QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: arm64 | ||
|
||
- name: π₯ Install Node.js v16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: π₯ Install Yarn Dependencies | ||
uses: borales/actions-yarn@v4 | ||
with: | ||
cmd: install | ||
|
||
- name: π₯ Install PHP v8.2 and Composer v2 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
tools: composer:v2 | ||
coverage: none | ||
|
||
- name: π¦ Install Vapor CLI | ||
run: composer global require laravel/vapor-cli | ||
|
||
- name: π¦ Install Composer Dependencies | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
composer-options: "--no-interaction --prefer-dist --optimize-autoloader --no-progress --no-ansi --no-dev --classmap-authoritative" | ||
|
||
- name: βοΈ Deploy Environment | ||
run: vapor command ${{ github.ref_name }} --message="php artisan migrate:fresh --seed --force" | ||
env: | ||
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }} |
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