-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from commonknowledge/add-kinsa-deploy-script-…
…template Add Kintsa deploy script template
- Loading branch information
Showing
2 changed files
with
32 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,28 @@ | ||
name: Deploy to Kinsta template | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
web-deploy: | ||
name: Deploy to staging | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install SSH key | ||
uses: shimataro/ssh-key-action@v2 | ||
with: | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
config: ${{ secrets.SSH_CONFIG }} | ||
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }} | ||
name: id_rsa | ||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
- name: Run Git Pull | ||
run: ssh <Kinsta SSH terminal command> "cd public && git pull && exit" | ||
- name: Run Composer install | ||
run: ssh <Kinsta SSH terminal command> "cd public && composer install --no-dev --no-scripts" | ||
- name: Activate Plugins | ||
run: ssh <Kinsta SSH terminal command> "cd public && wp plugin activate --all" |
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