capistrano_shopware6 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +22 -0
- data/.gitignore +2 -0
- data/README.md +5 -3
- data/capistrano-magento2.gemspec +1 -1
- data/lib/capistrano/tasks/shopware.rake +23 -4
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68f5b3b4d4da5d595e1346f11f6f629334e8fb6b5ecd35937f1fcece3009ea13
|
|
4
|
+
data.tar.gz: 9f720e92e46811ea18e492b03c385e67722fd8465a5ae76c8f3229a016c3d0ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51d829736b5672f5067963d533186534d1f53ef79e7adb0f55bca07ea93da6c36739a94ea591733216366f793280c7f8322a0fc4ba48ac045b2a9f58ece59271
|
|
7
|
+
data.tar.gz: cdba67db6b41433398d16f6c3a1870b48a635dc2a18c84c0ce2bcf64fd3b4e1a48150190879aec6871985e6b92fd34586b6c73ff1893e2f1d345f0c4895e19e6
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Publish Gem
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "*"
|
|
7
|
+
tags:
|
|
8
|
+
- v*
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v1
|
|
15
|
+
|
|
16
|
+
- name: Release Gem
|
|
17
|
+
if: contains(github.ref, 'refs/tags/v')
|
|
18
|
+
uses: cadwallion/publish-rubygems-action@master
|
|
19
|
+
env:
|
|
20
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
21
|
+
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
|
22
|
+
RELEASE_COMMAND: rake release
|
data/README.md
CHANGED
|
@@ -9,10 +9,12 @@ Details
|
|
|
9
9
|
Deployment process has the following steps:
|
|
10
10
|
|
|
11
11
|
* `composer install`
|
|
12
|
+
* `bin/console maintenance:enable`
|
|
13
|
+
* `psh.phar update`
|
|
14
|
+
* `bin/console database:migrate_destructive --all`
|
|
15
|
+
* `psh.phar administration:build`
|
|
12
16
|
* `psh.phar storefront:build`
|
|
13
17
|
* `bin/console assets:install`
|
|
14
|
-
* `bin/console maintenance:enable`
|
|
15
|
-
* `bin/console database:migrate`
|
|
16
18
|
* `bin/console maintenance:disable`
|
|
17
19
|
* `bin/console cache:warmup`
|
|
18
20
|
|
|
@@ -21,7 +23,7 @@ Usage
|
|
|
21
23
|
|
|
22
24
|
To use this gem add this to your `Gemfile`
|
|
23
25
|
|
|
24
|
-
`gem "capistrano_shopware6"
|
|
26
|
+
`gem "capistrano_shopware6"`
|
|
25
27
|
|
|
26
28
|
and then this line to your `Capfile`
|
|
27
29
|
|
data/capistrano-magento2.gemspec
CHANGED
|
@@ -44,12 +44,26 @@ namespace :shopware do
|
|
|
44
44
|
invoke! 'shopware:psh:execute', 'administration:build'
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
|
+
|
|
48
|
+
namespace :common do
|
|
49
|
+
task :update do
|
|
50
|
+
invoke! 'shopware:psh:execute', 'update'
|
|
51
|
+
end
|
|
52
|
+
end
|
|
47
53
|
end
|
|
48
54
|
|
|
49
55
|
namespace :console do
|
|
50
56
|
task :execute, :param do |t, args|
|
|
51
57
|
on roles(:app) do
|
|
52
|
-
within
|
|
58
|
+
within release_path do
|
|
59
|
+
execute 'bin/console', args[:param]
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
task :execute_current, :param do |t, args|
|
|
65
|
+
on roles(:app) do
|
|
66
|
+
within current_path do
|
|
53
67
|
execute 'bin/console', args[:param]
|
|
54
68
|
end
|
|
55
69
|
end
|
|
@@ -76,8 +90,12 @@ namespace :shopware do
|
|
|
76
90
|
invoke! 'shopware:console:execute', 'database:migrate --all'
|
|
77
91
|
end
|
|
78
92
|
|
|
93
|
+
task :database_migrate_destructive do
|
|
94
|
+
invoke! 'shopware:console:execute', 'database:migrate-destructive --all'
|
|
95
|
+
end
|
|
96
|
+
|
|
79
97
|
task :maintenance_enable do
|
|
80
|
-
invoke! 'shopware:console:
|
|
98
|
+
invoke! 'shopware:console:execute_current', 'sales-channel:maintenance:enable --all'
|
|
81
99
|
end
|
|
82
100
|
|
|
83
101
|
task :maintenance_disable do
|
|
@@ -90,14 +108,15 @@ end
|
|
|
90
108
|
namespace :deploy do
|
|
91
109
|
after :updated, :shopware do
|
|
92
110
|
invoke 'composer:install'
|
|
111
|
+
invoke 'shopware:console:maintenance_enable'
|
|
112
|
+
invoke 'shopware:psh:common:update'
|
|
113
|
+
invoke 'shopware:console:database_migrate_destructive'
|
|
93
114
|
invoke 'shopware:psh:administration:build'
|
|
94
115
|
invoke 'shopware:psh:storefront:build'
|
|
95
116
|
invoke 'shopware:console:assets_install'
|
|
96
|
-
invoke 'shopware:console:maintenance_enable'
|
|
97
117
|
end
|
|
98
118
|
|
|
99
119
|
after :published, :shopware do
|
|
100
|
-
invoke 'shopware:console:database_migrate'
|
|
101
120
|
invoke 'shopware:console:maintenance_disable'
|
|
102
121
|
invoke 'shopware:console:cache_warmup'
|
|
103
122
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano_shopware6
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Giacomo Mirabassi
|
|
@@ -30,6 +30,7 @@ executables: []
|
|
|
30
30
|
extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
|
32
32
|
files:
|
|
33
|
+
- ".github/workflows/main.yml"
|
|
33
34
|
- ".gitignore"
|
|
34
35
|
- Gemfile
|
|
35
36
|
- LICENSE.txt
|
|
@@ -58,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
58
59
|
- !ruby/object:Gem::Version
|
|
59
60
|
version: '0'
|
|
60
61
|
requirements: []
|
|
61
|
-
rubygems_version: 3.0.
|
|
62
|
+
rubygems_version: 3.0.3
|
|
62
63
|
signing_key:
|
|
63
64
|
specification_version: 4
|
|
64
65
|
summary: Capistrano deploy instructions for Shopware 6
|