-
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.
Merge pull request #9 from okfn-brasil/dev
Automatiza deploy e remove arquivos core do wordpress
- Loading branch information
Showing
10,148 changed files
with
79 additions
and
2,574,745 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,33 @@ | ||
name: Deploy Dev | ||
on: | ||
push: | ||
branches: [ dev ] | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Sync | ||
env: | ||
dest: '${{vars.USER}}@${{vars.HOST}}:${{vars.THEMEPATHDEV}}' | ||
run: | | ||
echo "${{secrets.DEPLOY_KEY}}" > deploy_key | ||
chmod 600 ./deploy_key | ||
rsync -chav --delete \ | ||
-e 'ssh -i ./deploy_key -o StrictHostKeyChecking=no' \ | ||
--exclude /deploy_key \ | ||
--exclude /.git/ \ | ||
--exclude /.github/ \ | ||
--exclude /node_modules/ \ | ||
./ ${{env.dest}} | ||
- name: SSH Remote Commands | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{vars.HOST}} | ||
username: ${{vars.USER}} | ||
key: ${{secrets.DEPLOY_KEY}} | ||
script: | | ||
cd ${{vars.THEMEPATHDEV}} | ||
git checkout dev | ||
docker exec dev-site-okbr-wpcli-1 wp theme activate site-okbr |
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,33 @@ | ||
name: Deploy Main | ||
on: | ||
push: | ||
branches: [ main ] | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Sync | ||
env: | ||
dest: '${{vars.USER}}@${{vars.HOST}}:${{vars.THEMEPATHPROD}}' | ||
run: | | ||
echo "${{secrets.DEPLOY_KEY}}" > deploy_key | ||
chmod 600 ./deploy_key | ||
rsync -chav --delete \ | ||
-e 'ssh -i ./deploy_key -o StrictHostKeyChecking=no' \ | ||
--exclude /deploy_key \ | ||
--exclude /.git/ \ | ||
--exclude /.github/ \ | ||
--exclude /node_modules/ \ | ||
./ ${{env.dest}} | ||
- name: SSH Remote Commands | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{vars.HOST}} | ||
username: ${{vars.USER}} | ||
key: ${{secrets.DEPLOY_KEY}} | ||
script: | | ||
cd ${{vars.THEMEPATHPROD}} | ||
git checkout main | ||
docker exec dev-site-okbr-wpcli-1 wp theme activate site-okbr |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,17 +1,4 @@ | ||
<?php | ||
/** | ||
* Front to the WordPress application. This file doesn't do anything, but loads | ||
* wp-blog-header.php which does and tells WordPress to load the theme. | ||
* | ||
* @package WordPress | ||
*/ | ||
|
||
/** | ||
* Tells WordPress to load the WordPress theme and output it. | ||
* | ||
* @var bool | ||
*/ | ||
define( 'WP_USE_THEMES', true ); | ||
|
||
/** Loads the WordPress Environment and Template */ | ||
require __DIR__ . '/wp-blog-header.php'; | ||
<?php get_header(); ?> | ||
<?php get_template_part('block-menu'); ?> | ||
<?php get_template_part('block-apoie'); ?> | ||
<?php get_footer(); ?> |
Oops, something went wrong.