Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/levizoesch/laravel-web-deploy
A simple github action script to deploy a laravel application to a FTP host using SSH Key/passphrase
https://github.com/levizoesch/laravel-web-deploy
Last synced: about 1 month ago
JSON representation
A simple github action script to deploy a laravel application to a FTP host using SSH Key/passphrase
- Host: GitHub
- URL: https://github.com/levizoesch/laravel-web-deploy
- Owner: levizoesch
- Created: 2024-01-24T02:50:39.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-24T03:04:32.000Z (12 months ago)
- Last Synced: 2024-01-25T03:43:33.976Z (12 months ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# laravel-web-deploy
A simple github action script to deploy a laravel application to a FTP host using SSH Key/passphraseThis is a 2 step process to get fully implemented.
This will initialize the files onto the domain from the repository.
```
name: FTP Uploadon:
push:
branches:
- mainjobs:
web-deploy:
name: 🎉 Deploy to Production
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server-dir: public_html/
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
protocol: ftp
port: 21
exclude: |
**/.git*
**/.git*/**
**/docker*/**```
Once the repository has been commited to your domain, you will need to run your `composer update` command, and any other `artisan` commands neccesary to get your environment up. Once things are up, You will then need to recommit the default file that is in this repository named `laravel-web-deploy.yml`# Create a SSH Key
Within your environment, create a SSH Key with a passphrase# Authorize SSH Key
Sometimes you will need to authorize the key, under the Authorization Status you will see its status. Click manage to change.# Create Deploy Keys
Add your Public SSH Key to your Deploy Keys.
Go to your `Github repository`, `Settings`, `Deploy Keys`# Create Github Repository Secrets
Go to your `Github repository`, `Settings`, `Secrets & Variables`, Select `Actions` drop down menu.SSH_HOST = The IP address
SSH_KEY = The Private SSH Key
SSH_PASS = The SSH Passphrase
SSH_USER = The SSH Username
# Commit the laravel-web-deploy.yml file to your repository.
# If all went well, your application should be set into Maintenance Mode before the FTP Files are uploaded, then the application will be taken out of Maintenance Mode.
# Help, Questions, Need More Context Submit a `New Issue`, or even better a PR...
Lets make development easier for everyone...